Commit Graph

58 Commits

Author SHA1 Message Date
Mark Roszko
3812a286c4 Patch out GTK specific function from wx 3.2.1 2022-11-08 21:57:48 -05:00
Robin Dunn
f8d7cad72b Ignore wx.App.GetGUIInstance 2022-05-17 18:47:24 -07:00
Robin Dunn
3e6be81d6d Add forgotten class scope 2022-05-09 23:12:14 -07:00
Robin Dunn
d7711acce3 Fix wrappers for platform-specific GTKSuppressDiagnostics and OSXEnableNewLineReplacement
They need to be generated for all platforms, even if they do not do anything on some.
2022-05-09 21:49:11 -07:00
Scott Talbert
aa1ef7bd75 Update ETG scripts to support wxWidgets 3.1.6 functionality
Fixes #2136.
2022-05-02 22:33:58 -04:00
Robin Dunn
040c59fd99 Change InitLocale to just do locale.setlocale(locale.LC_ALL, "C") to undo what Python (3.8+ on Windows) does. 2021-01-29 13:39:49 -08:00
Robin Dunn
91a205fb17 Provide a stubbed version of wxHandleFatalExceptions based on wxUSE_ON_FATAL_EXCEPTION 2021-01-18 14:16:59 -08:00
Robin Dunn
509de11947 Add note about wx.PyApp 2020-07-07 11:33:23 -07:00
Robin Dunn
2573b6de8e Also catch the locale.Error exception 2020-07-02 16:15:03 -07:00
Robin Dunn
41220cc9bb Don't use an f-string, in order to not break Py2.7 (yet) 2020-06-26 21:49:47 -07:00
Robin Dunn
089985a9fb Log the exception's message too 2020-06-26 13:29:00 -07:00
Robin Dunn
f67f588fb9 Update wx.App.InitLocale to be MSW-only, simpler, and maybe better 2020-06-26 12:45:18 -07:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
5b24493ae7 fix typo 2020-02-18 14:00:55 -08:00
Robin Dunn
7d3a3e9139 Handle a ValueError from locale.getlocale() 2019-10-23 09:38:53 -07:00
Robin Dunn
acb1e69b4d Don't ignore UsesEventLoop 2019-10-22 14:55:32 -07:00
Robin Dunn
382a624aaf Add ResetLocale 2019-10-17 16:40:25 -07:00
Robin Dunn
224d62104a comment tweaks 2019-10-17 16:40:25 -07:00
Robin Dunn
6d77fcf15a Create and hold a wx.Locale object when the wx.App is intialized, trying to make it match what is already set for the process. 2019-10-17 16:40:25 -07:00
Robin Dunn
c1d25d0e16 Remove tracking of application instance in wxPyApp, and just use the one already in wxAppConsole instead. This will enable wx.GetApp to still do the right thing when the wxApp is created outside of Python. 2019-09-12 13:42:31 -07:00
Robin Dunn
28bdb22c89 Fixed issue when sys.prefix is not unicode (Python2) and when its contents are not translatable to utf-8.
(cherry picked from commit 3e88095c53)
2018-06-25 14:22:58 -07:00
Robin Dunn
b77c88a280 Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
(cherry picked from commit 4c56c39e52)
2018-06-17 22:04:22 -07:00
Robin Dunn
1e62f2f6de Ignore new exception related methods 2018-02-13 17:15:48 -08:00
Robin Dunn
5ee7052904 Build fixes for MSW 2018-02-10 19:23:07 -08:00
Robin Dunn
a79cd3254c Add wx.YieldIfNeeded 2017-04-13 21:27:15 -07:00
Robin Dunn
4e38994944 Update copyright in etg 2017-02-13 16:14:55 -08:00
Robin Dunn
5f04f3b082 Add more mustHaveApp flags 2017-01-23 20:41:07 -08:00
Metallicow
ebc8d0d971 trim trailing space etg directory 2016-11-10 12:08:36 -06:00
Robin Dunn
62a222180b Sip needs to see declarations of TryBefore/TryAfter in all classes where it might be overridden. Otherwise searching for event handlers could fail in some cases. 2015-03-07 14:44:13 -08:00
Robin Dunn
e46cf56ff7 Fix various typos in comments 2015-02-14 13:52:10 -08:00
Robin Dunn
1ab6de95a6 Add helper functions that can inject some text into docstrings, use it in wx.AppConsole. 2015-02-12 16:08:44 -08:00
Robin Dunn
35fd2e16bf Update copyright year
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:03 +00:00
Andrea Gavana
6157b2bc35 Phoenix: sizers_overview.rst expanded; added a bunch of "contributed" snippets on various classes/methods; many fixes on strange doxygen layouts and XML hierarchies; fixed many cross-references between classes/methods/functions in the etg files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-04 20:58:27 +00:00
Robin Dunn
50ac718d47 We have wx.SystemOptions now…
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-09 04:38:17 +00:00
Robin Dunn
2ac07d6b9b Add wx.App.Get
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-28 19:43:29 +00:00
Robin Dunn
932ae5d6cc Add GetComCtl32Version and GetShell32Version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-14 21:37:27 +00:00
Robin Dunn
a1163deb78 Add IsMainThread and use it in the PyOnDemandOutputWindow class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 08:49:56 +00:00
Robin Dunn
9d79e123fa Tweak the deprecation warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 05:02:43 +00:00
Robin Dunn
aebd862d14 Provide hints for deprecated items about what should be used instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-10 05:15:17 +00:00
Robin Dunn
da6957254c * Allow ExitMainLoop to be overridden.
* Add wxGUIEventLoop.
* Add a mainloop sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-23 00:44:30 +00:00
Andrea Gavana
dfc8c5e69f Phoenix stuff:
1) Fixes on the problems reported by Werner on wx.EvtHandler (and there were many others, hopefully they should be OK now);
2) Integration of Chris' samples on wx.GridBagSizer (see http://xoomer.virgilio.it/infinity77/Phoenix/GridBagSizer.html#gridbagsizer);
3) Start on the Documentation guidelines (see http://xoomer.virgilio.it/infinity77/Phoenix/DocstringsGuidelines.html);
4) Integration of Werner's patches on _core.py and app.py for the docstrings.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-01 17:56:57 +00:00
Robin Dunn
5490349f39 Regardless of the command-line flag there are a few methods that should always release the GIL, those that are expected to block or to take a long time. Add the annotations now in case I ever decide to change the default again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-23 03:20:08 +00:00
Robin Dunn
1045bd966d The GetMacFoo/SetMacFoo methods are wxPython-only, so they need to be declared here instead of in the wx interface files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-11 20:38:30 +00:00
Andrea Gavana
ca4746f13c - Initial commit of the Python scripts to ReSTify the XML documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-30 19:17:09 +00:00
Robin Dunn
289f118d09 Move more Python code to extractor objects.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-22 18:46:45 +00:00
Robin Dunn
3ab334932e renamed wx.PyAssertionError
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-03 01:00:44 +00:00
Robin Dunn
8f8c7a3d43 Add the ability to raise a wx.PyAssertionError when a wxASSERT (or other similar debug macros) fail. To do this support for the /RaisesPyException/ annotation is added, but it defaults to turned on for every function or non-ctor method.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-10 02:43:05 +00:00
Robin Dunn
6fe99f038a * Some of the Create methods in wx.AppTraits can be unignored now.
* Add a Traits property to wx.App

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-25 04:12:06 +00:00
Robin Dunn
d949d1dad1 * Update version number
* Since they are almost always needed for window classes, move the calls to
  removeVirtuals and addWindowVirtuals into the fixWindowClass and
  fixTopLevelWindowClass functions.

* Add wxWithImages to the interface headers and create wrappers for it and use
  it as a base of wxBoockCtrlBase.

* Add a new wx.deprecated() function that can handle properties and classes in
  addition to callables. It issues a custom warning, wxPyDeprecationWarning
  since the stock DeprecationWarning is filtered out by default in Python 2.7.

* Deprecate PyWindow and similar aliases

* Deprecate wx.Window.SetDimensions


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-11 00:33:10 +00:00
Kevin Ollivier
60d9ea15f6 More updates for Phoenix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-09 15:46:56 +00:00