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