Some random test apps that I've been playing with

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-31 00:59:32 +00:00
parent 5c9d9745fe
commit 6ed100b4a1
8 changed files with 1077 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import wx
class TestPanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.gauge = wx.Gauge(self, range=100, pos=(20,20), size=(100,-1))
self.Bind(wx.EVT_IDLE, self.OnIdle)
self.count = 1
self.skipNext = False
def OnIdle(self, evt):
if self.skipNext:
self.skipNext = False
return
self.skipNext = True
print "OnIdle:", self.count
#self.gauge.SetValue(self.count)
self.count += 1
if self.count >= 100:
self.count = 1
app = wx.App(False)
frm = wx.Frame(None)
pnl = TestPanel(frm)
frm.Show()
app.MainLoop()