mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 17:30:26 +02:00
* Add a wx.BookCtrl and binder aliases (set to wx.Notebook) since it is mentioned in the notebook overview. * update unittests git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
36 lines
879 B
Python
36 lines
879 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class panel_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_bookctrl1(self):
|
|
wx.BK_DEFAULT
|
|
wx.BK_TOP
|
|
wx.BK_BOTTOM
|
|
wx.BK_LEFT
|
|
wx.BK_RIGHT
|
|
wx.BK_HITTEST_NOWHERE
|
|
wx.BK_HITTEST_ONICON
|
|
wx.BK_HITTEST_ONLABEL
|
|
wx.BK_HITTEST_ONITEM
|
|
wx.BK_HITTEST_ONPAGE
|
|
|
|
|
|
def test_bookctrl2(self):
|
|
# These are actually aliases for wx.Notebook
|
|
wx.BookCtrl
|
|
wx.wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED
|
|
wx.wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING
|
|
wx.EVT_BOOKCTRL_PAGE_CHANGED
|
|
wx.EVT_BOOKCTRL_PAGE_CHANGING
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|