mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 01:10:12 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
31 lines
933 B
Python
31 lines
933 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
|
|
import wx.lib.agw.rulerctrl as RC
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class lib_agw_rulerctrl_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_lib_agw_rulerctrlCtor(self):
|
|
ruler = RC.RulerCtrl(self.frame, -1, orient=wx.HORIZONTAL, style=wx.SUNKEN_BORDER)
|
|
|
|
def test_lib_agw_rulerctrlMethods(self):
|
|
ruler = RC.RulerCtrl(self.frame, -1, orient=wx.VERTICAL, style=wx.STATIC_BORDER)
|
|
|
|
# Some methods tests...
|
|
self.assertEqual(ruler.GetFormat(), RC.RealFormat)
|
|
|
|
def test_lib_agw_rulerctrlEvents(self):
|
|
RC.EVT_INDICATOR_CHANGED
|
|
RC.EVT_INDICATOR_CHANGING
|
|
RC.wxEVT_INDICATOR_CHANGED
|
|
RC.wxEVT_INDICATOR_CHANGING
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|