コード例 #1
0
 def __init__(self, master, flist, gui):
     if macosx.isAquaTk():
         ScrolledList.__init__(self, master)
     else:
         ScrolledList.__init__(self, master, width=80)
     self.flist = flist
     self.gui = gui
     self.stack = []
コード例 #2
0
ファイル: debugger.py プロジェクト: JSMSC/cpython
 def __init__(self, master, flist, gui):
     if macosx.isAquaTk():
         # At least on with the stock AquaTk version on OSX 10.4 you'll
         # get a shaking GUI that eventually kills IDLE if the width
         # argument is specified.
         ScrolledList.__init__(self, master)
     else:
         ScrolledList.__init__(self, master, width=80)
     self.flist = flist
     self.gui = gui
     self.stack = []
コード例 #3
0
 def __init__(self, master, flist, gui):
     if macosx.isAquaTk():
         # At least on with the stock AquaTk version on OSX 10.4 you'll
         # get a shaking GUI that eventually kills IDLE if the width
         # argument is specified.
         ScrolledList.__init__(self, master)
     else:
         ScrolledList.__init__(self, master, width=80)
     self.flist = flist
     self.gui = gui
     self.stack = []
コード例 #4
0
ファイル: debugger.py プロジェクト: JSMSC/cpython
 def popup_event(self, event):
     "override base method"
     if self.stack:
         return ScrolledList.popup_event(self, event)
コード例 #5
0
 def test_init(self):
     ScrolledList(self.root)
コード例 #6
0
 def popup_event(self, event):
     "override base method"
     if self.stack:
         return ScrolledList.popup_event(self, event)