Commit Graph

33 Commits

Author SHA1 Message Date
Robin Dunn
8dba98cdc3 Remove now unneeded tweak for the wxFontInfo ctor 2020-05-14 16:52:16 -07:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
36fb1eec3b Tweak documentation for the old wx.Font contstructor 2019-12-10 13:06:30 -08:00
Robin Dunn
229870f9c9 Add a __bool__ for every __nonzero__ that doesn't already have one 2018-10-12 23:58:16 -07:00
Robin Dunn
71a3d90e0b Update to current wxWidgets master 2018-10-12 22:59:46 -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
90fa6b56ad Add static method wx.Font.CanUsePrivateFont to allow checking if AddPrivateFont is implemented in this wxPython build 2018-02-14 11:50:41 -08:00
Robin Dunn
a81c0b12f2 Conditionalize AddPrivateFont 2018-02-13 22:12:11 -08:00
Robin Dunn
875c9677ac Revert auto-propagating the mustHaveAppFlag from classes to their static methods, if any, and explicitly set the flag on only those static methods that need it instead. 2017-03-21 19:21:07 -07:00
Robin Dunn
4e38994944 Update copyright in etg 2017-02-13 16:14:55 -08:00
Robin Dunn
84f1f25de1 The GDI objects need to be able to be created using their default dtors before the wx.App object is created, in order for the global StockGDI objects to be able to work correctly. 2017-01-23 14:59:22 -08:00
Robin Dunn
dc73188688 Set a bunch of mustHaveApp flags 2017-01-21 20:13:46 -08:00
Metallicow
ebc8d0d971 trim trailing space etg directory 2016-11-10 12:08:36 -06:00
Robin Dunn
cd87abfc22 typo 2016-07-15 16:27:35 -07:00
Robin Dunn
6a3d15ec67 Add wxFontInfo, adapt to loss of one of the ctors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-30 20:09:05 +00:00
Robin Dunn
8967f52028 Add GetHFONT, OSXGetCGFont, and GetPangoFontDescription
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-28 00:15:30 +00: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
Robin Dunn
ced9d6b175 Fix base classes for wxBrushList and wxFontList
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-09 04:39:09 +00:00
Robin Dunn
a4353a763e Update to doxygen 1.8.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-05 05:20:18 +00:00
Robin Dunn
7e7a3b3d6a add deprecated stubs for GetNoAntiAliasing and SetNoAntiAliasing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-28 19:43:24 +00:00
Robin Dunn
11e29f9425 Use the integer value of the enums when making the alias for the old flag names for Font, Brush, and Pen. This fixes it so that the old names can still be used without errors, even when there is overlapping flag names.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-18 07:04:24 +00:00
Robin Dunn
ff5abd2efe There is now a real constructor for the flags API, no need to add one anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-09 06:21:42 +00:00
Robin Dunn
497e10bd43 Add wrappers for the NameStr globals and a few other tweaks to get the code in core.pi to be valid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-04 05:57:19 +00:00
Robin Dunn
8c0b88b036 Give wx.Font a __nonzero__(), add wx.NativeFontInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:26:24 +00:00
Robin Dunn
8aab0cabf0 * Turn off the virtual flag for the wxObject dtor. This makes it possible for simpler wrappers without a new derived class to be generated for any class that derives from wxObject and doesn't have any virtuals of its own, and also makes it so .addCppCtor will work for those classes.
* Switch to .addCppCtor for wx.Font
* Add code to enable wx.AcceleratorTable to be constructed from a list of 3 integer tuples (or wx.AcceleratorEntry instances) like can be done in Classic.
* Add unittests for wx.AcceleratorTable and wx.AcceleratorEntry

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 00:45:57 +00:00
Robin Dunn
70467f7621 Add wxStockGDI, use it to delay the initialization of the global stock GDI objects (wx.BLUE_BRUSH, wx.RED, wx.BLACK_PEN, etc.) until the wx.App object is created.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-20 04:33:19 +00:00
Robin Dunn
d1f07ae0a7 Move wxFontMetrics from font.py to dc.py since that is the interface file it is located in.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-18 04:48:46 +00:00
Robin Dunn
04f10c5868 Update Phoenix copyright statements to 2011
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-03 01:52:23 +00:00
Kevin Ollivier
49fda7ada4 Add automatic class property generation, add support for defines, remove layout constraints from the build as they appear not to be generated with the docs for me, and add wrappers for a bunch of classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-08-30 15:39:33 +00:00
Robin Dunn
911d90273c Lots of little changes made to Phoenix code over the past few months, plus some tweaks to get it running with the current wx.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-08-25 23:45:50 +00:00
Robin Dunn
9a7f1269c1 Generate CppMethods as a separate function that is called from the wrapper, instead of embedding it in the wrapper itself. This helps us be less SIP-specific and also be able to do things like 'return' the value and use 'self->' instead of having to use variable names that make less sense.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-07 02:58:21 +00:00
Robin Dunn
833fa43787 A bit of refactoring
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-28 03:43:30 +00:00
Robin Dunn
96717983ad A boatload of changes and additions, all my Phoenix work for the past few days. Lots of lower level classes are wrapped, wxApp is working up through OnInit, plus there's a good start on some unit tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-27 08:53:17 +00:00