Make it possible to create just one clock, for testing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-11-01 02:17:37 +00:00
parent e5b14b7498
commit 2d499dbbb3

View File

@ -15,7 +15,10 @@ class TestPanel(wx.Panel):
wx.Panel.__init__(self, parent)
# A mostly default clock
c1 = ac.AnalogClock(self)
c1 = ac.AnalogClock(self, size=(200,200))
if True: # for a simpler test case just set this to False and
# only the one clock will be created
# A plain clock, with square hour and round minute marks, no
# shadow, static border