diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/BusyInfo.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/BusyInfo.1.py new file mode 100644 index 00000000..9351a7fc --- /dev/null +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/BusyInfo.1.py @@ -0,0 +1,7 @@ + + wait = wx.BusyInfo("Please wait, working...") + + for i in xrange(10000): + DoACalculation() + + del wait diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/BusyInfo.2.py b/docs/sphinx/rest_substitutions/snippets/python/converted/BusyInfo.2.py new file mode 100644 index 00000000..1eb002f8 --- /dev/null +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/BusyInfo.2.py @@ -0,0 +1,11 @@ + + disableAll = wx.WindowDisabler() + wait = wx.BusyInfo("Please wait, working...") + + for i in xrange(10000): + DoACalculation() + + if i % 1000 == 0: + wx.GetApp().Yield() + + del wait