mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fixed ttedit to actually work
Fixed minor update bug in tlist
This commit is contained in:
parent
cef2c597fe
commit
c9c0dd3420
2 changed files with 7 additions and 15 deletions
|
@ -19,20 +19,16 @@ class ListWindow(Window):
|
|||
r = (40, 40, 400, 300)
|
||||
w = Win.NewWindow(r, name, 1, 0, -1, 1, 0x55555555)
|
||||
r2 = (0, 0, 345, 245)
|
||||
Qd.SetPort(w)
|
||||
self.wid = w
|
||||
self.list = List.LNew(r2, (0, 0, 1, 1), (0,0), 0, w, 0, 1, 1, 1)
|
||||
self.filllist()
|
||||
w.DrawGrowIcon()
|
||||
self.wid = w
|
||||
self.do_postopen()
|
||||
|
||||
def do_activate(self, onoff, evt):
|
||||
self.list.LActivate(onoff)
|
||||
|
||||
def do_rawupdate(self, window, event):
|
||||
window.BeginUpdate()
|
||||
self.do_update(window, event)
|
||||
window.EndUpdate()
|
||||
|
||||
def do_update(self, *args):
|
||||
self.list.LUpdate(self.wid.GetWindowPort().visRgn)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue