mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 17:30:26 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
29 lines
849 B
Python
29 lines
849 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class listbox_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_ComboBoxCtors(self):
|
|
c = wx.ListBox(self.frame, choices="one two three four".split())
|
|
c = wx.ListBox(self.frame, -1, wx.Point(10,10), wx.Size(80,-1),
|
|
"one two three four".split(), 0)
|
|
c = wx.ListBox(self.frame, -1, (10,10), (80,-1), "one two three four".split(), 0)
|
|
|
|
self.assertTrue(c.GetCount() == 4)
|
|
|
|
|
|
def test_ComboBoxDefaultCtor(self):
|
|
c = wx.ListBox()
|
|
c.Create(self.frame, choices="one two three four".split())
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|