More demo conversion and cleanup from Jeff

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-01-13 03:17:17 +00:00
parent 2b5dcd17c1
commit 95bfd958bd
142 changed files with 282 additions and 1155 deletions

View File

@@ -1,7 +1,3 @@
# 11/15/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o Updated for wx namespace
#
import wx
@@ -24,7 +20,7 @@ class TestComboBox(wx.Panel):
#'this is a long item that needs a scrollbar...',
'six', 'seven', 'eight']
wx.StaticText(self, -1, "This example uses the wxComboBox control.", (8, 10))
wx.StaticText(self, -1, "This example uses the wx.ComboBox control.", (8, 10))
wx.StaticText(self, -1, "Select one:", (15, 50), (75, 18))
# This combobox is created with a preset list of values.
@@ -33,11 +29,6 @@ class TestComboBox(wx.Panel):
(95, -1), sampleList, wx.CB_DROPDOWN #|wxTE_PROCESS_ENTER
)
##import win32api, win32con
##win32api.SendMessage(cb.GetHandle(),
## win32con.CB_SETHORIZONTALEXTENT,
## 200, 0)
self.Bind(wx.EVT_COMBOBOX, self.EvtComboBox, cb)
self.Bind(wx.EVT_TEXT, self.EvtText, cb)
self.Bind(wx.EVT_TEXT_ENTER, self.EvtTextEnter, cb)
@@ -85,7 +76,6 @@ def runTest(frame, nb, log):
#---------------------------------------------------------------------------
overview = """\
A ComboBox is like a combination of an edit control and a listbox. It can be
displayed as static list with editable or read-only text field; or a drop-down
@@ -108,6 +98,8 @@ event is generated every time that the user hits a key in the ComboBox entry fie
"""
#---------------------------------------------------------------------------
if __name__ == '__main__':
import sys,os
import run