mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-07 10:20:32 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
33 lines
805 B
Python
33 lines
805 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class caret_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_caret1(self):
|
|
pnl = wx.Window(self.frame)
|
|
c = wx.Caret(pnl, (2, 15))
|
|
self.assertTrue(c.IsOk())
|
|
wx.Caret.SetBlinkTime(100)
|
|
c.Move((50,50))
|
|
c.Show()
|
|
self.waitFor(300)
|
|
|
|
def test_caret2(self):
|
|
pnl = wx.Window(self.frame)
|
|
c = wx.Caret()
|
|
c.Create(pnl, 2, 15)
|
|
self.assertTrue(c.IsOk())
|
|
wx.Caret.SetBlinkTime(100)
|
|
c.Move(50,50)
|
|
c.Show()
|
|
self.waitFor(300)
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|