little tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b856768b04
commit
d2f9bbfd43
@ -53,8 +53,7 @@ enum {
|
||||
};
|
||||
|
||||
|
||||
%pythoncode {
|
||||
|
||||
%pythoncode {
|
||||
EVT_MSHTML_BEFORENAVIGATE2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, 1)
|
||||
EVT_MSHTML_NEWWINDOW2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_NEWWINDOW2, 1)
|
||||
EVT_MSHTML_DOCUMENTCOMPLETE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, 1)
|
||||
|
@ -33,9 +33,8 @@ class CalcBarThread:
|
||||
def Run(self):
|
||||
while self.keepGoing:
|
||||
evt = UpdateBarEvent(barNum = self.barNum, value = int(self.val))
|
||||
wx.PostEvent(self.win.GetEventHandler(), evt)
|
||||
#del evt
|
||||
|
||||
wx.PostEvent(self.win, evt)
|
||||
|
||||
sleeptime = (random.random() * 2) + 0.5
|
||||
time.sleep(sleeptime/4)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user