mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +01:00
Add wx.Choicebook, wx.Listbook, wx.Toolbook and wx.Treebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
37
unittests/test_choicebk.py
Normal file
37
unittests/test_choicebk.py
Normal file
@@ -0,0 +1,37 @@
|
||||
import imp_unittest, unittest
|
||||
import wtc
|
||||
import wx
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class choicebk_Tests(wtc.WidgetTestCase):
|
||||
|
||||
def test_choicebk1(self):
|
||||
wx.CHB_DEFAULT
|
||||
wx.CHB_TOP
|
||||
wx.CHB_BOTTOM
|
||||
wx.CHB_LEFT
|
||||
wx.CHB_RIGHT
|
||||
wx.CHB_ALIGN_MASK
|
||||
|
||||
wx.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
|
||||
wx.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
|
||||
wx.EVT_CHOICEBOOK_PAGE_CHANGED
|
||||
wx.EVT_CHOICEBOOK_PAGE_CHANGING
|
||||
|
||||
|
||||
def test_choicebk2(self):
|
||||
book = wx.Choicebook()
|
||||
book.Create(self.frame)
|
||||
|
||||
|
||||
def test_choicebk3(self):
|
||||
book = wx.Choicebook(self.frame)
|
||||
book.AddPage(wx.Panel(book), 'one')
|
||||
book.AddPage(wx.Panel(book), 'two')
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user