projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some setup.h changes for wxMovieCtrl
[wxWidgets.git]
/
wxPython
/
demo
/
ListBox.py
diff --git
a/wxPython/demo/ListBox.py
b/wxPython/demo/ListBox.py
index c3a69d6919ecda1a50c9fb597296b959ffdbc8ad..357a2b4b21c73dfedfba70c1e65dbb7120afd6e7 100644
(file)
--- a/
wxPython/demo/ListBox.py
+++ b/
wxPython/demo/ListBox.py
@@
-1,7
+1,3
@@
-# 11/20/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for wx namespace
-#
import wx
import wx
@@
-78,9
+74,9
@@
class TestListBox(wx.Panel):
'six', 'seven', 'eight', 'nine', 'ten', 'eleven',
'twelve', 'thirteen', 'fourteen']
'six', 'seven', 'eight', 'nine', 'ten', 'eleven',
'twelve', 'thirteen', 'fourteen']
- wx.StaticText(self, -1, "This example uses the wxListBox control.", (45, 10))
+ wx.StaticText(self, -1, "This example uses the wx
.
ListBox control.", (45, 10))
wx.StaticText(self, -1, "Select one:", (15, 50), (65, 18))
wx.StaticText(self, -1, "Select one:", (15, 50), (65, 18))
- self.lb1 = wx.ListBox(self, 60, (80, 50), (
8
0, 120), sampleList, wx.LB_SINGLE)
+ self.lb1 = wx.ListBox(self, 60, (80, 50), (
9
0, 120), sampleList, wx.LB_SINGLE)
self.Bind(wx.EVT_LISTBOX, self.EvtListBox, self.lb1)
self.Bind(wx.EVT_LISTBOX_DCLICK, self.EvtListBoxDClick, self.lb1)
self.lb1.Bind(wx.EVT_RIGHT_UP, self.EvtRightButton)
self.Bind(wx.EVT_LISTBOX, self.EvtListBox, self.lb1)
self.Bind(wx.EVT_LISTBOX_DCLICK, self.EvtListBoxDClick, self.lb1)
self.lb1.Bind(wx.EVT_RIGHT_UP, self.EvtRightButton)
@@
-90,7
+86,7
@@
class TestListBox(wx.Panel):
wx.StaticText(self, -1, "Select many:", (200, 50), (65, 18))
wx.StaticText(self, -1, "Select many:", (200, 50), (65, 18))
- self.lb2 = wx.ListBox(self, 70, (
280, 50), (8
0, 120), sampleList, wx.LB_EXTENDED)
+ self.lb2 = wx.ListBox(self, 70, (
300, 50), (9
0, 120), sampleList, wx.LB_EXTENDED)
self.Bind(wx.EVT_LISTBOX, self.EvtMultiListBox, self.lb2)
self.lb2.Bind(wx.EVT_RIGHT_UP, self.EvtRightButton)
self.lb2.SetSelection(0)
self.Bind(wx.EVT_LISTBOX, self.EvtMultiListBox, self.lb2)
self.lb2.Bind(wx.EVT_RIGHT_UP, self.EvtRightButton)
self.lb2.SetSelection(0)
@@
-100,7
+96,7
@@
class TestListBox(wx.Panel):
'test abcd' ]
sampleList.sort()
wx.StaticText(self, -1, "Find Prefix:", (15, 250))
'test abcd' ]
sampleList.sort()
wx.StaticText(self, -1, "Find Prefix:", (15, 250))
- fp = FindPrefixListBox(self, -1, (80, 250), (
8
0, 120), sampleList, wx.LB_SINGLE)
+ fp = FindPrefixListBox(self, -1, (80, 250), (
9
0, 120), sampleList, wx.LB_SINGLE)
fp.SetSelection(0)
fp.SetSelection(0)
@@
-158,5
+154,5
@@
independently of other selections).
if __name__ == '__main__':
import sys,os
import run
if __name__ == '__main__':
import sys,os
import run
- run.main(['', os.path.basename(sys.argv[0])])
+ run.main(['', os.path.basename(sys.argv[0])]
+ sys.argv[1:]
)