1119 Commits

Author SHA1 Message Date
Robin Dunn
beb55bc88a Restore missing SetWindowVariant 2020-08-31 13:25:56 -07:00
Robin Dunn
fa620e6e43 Merge branch '1780-fix-eventwatcher-filter' of https://github.com/carandraug/Phoenix into carandraug-1780-fix-eventwatcher-filter 2020-08-31 13:21:43 -07:00
Robin Dunn
5cb3d97be7 Merge pull request #1779 from carandraug/1778-fix-eventwatcher-import
EventWatcher: fix __import__ usage by replacing it with importlib (cl…
2020-08-31 13:15:47 -07:00
Robin Dunn
732ff6752b Revert "Spelling fixes in wx.lib"
This reverts commit c00b8950da.
The spelling changes were a bit too aggressive.
2020-08-31 13:01:31 -07:00
Ryan Nazaretian
05fbbfb3b5 Fixed issue with SetColumnWidth() using LIST_AUTOSIZE_CONTENT_OR_HEADER
Without the change, SetColumnWidth(**col**, LIST_AUTOSIZE_CONTENT_OR_HEADER) would throw this:
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/hypertreelist.py", line 4645, in SetColumnWidth
    width2, dummy, dummy = dc.GetMultiLineTextExtent(self._header_win.GetColumnText(column))
ValueError: not enough values to unpack (expected 3, got 2)

I ended up using the function called when LIST_AUTOSIZE_CONTENT_OR_HEADER, but reducing the number of **dummy** variables. To be consistent, I did the same for LIST_AUTOSIZE_USEHEADER.
2020-08-28 11:41:54 -05:00
Ryan Nazaretian
597dc00d20 Update hypertreelist.py 2020-08-28 11:30:45 -05:00
Carnë Draug
2d295b29c3 eventwatcher.EventChooser: fix using wx.CheckListBox (closes #1780) 2020-08-27 19:09:44 +01:00
Carnë Draug
b7912f6754 EventWatcher: fix __import__ usage by replacing it with importlib (closes #1778) 2020-08-27 16:28:38 +01:00
Metallicow
038b3e39fe Optimize piectrl.py
OnPaint - Draw timeit results

PieCtrl Demo Colorwheel Benchmark
Before
TIMEIT 0.10100555419921875  Animated
TIMEIT 0.10600614547729492  Colorwheel
After
TIMEIT 0.08300471305847168  Animated
TIMEIT 0.08600497245788574  Colorwheel
2020-08-08 00:49:59 -05:00
Metallicow
cca15e4490 Fix wxassertionerror. Bitmap w or h should not be 0 2020-08-08 00:43:29 -05:00
Erki Suurjaak
148ffa08fc In the context of #1734:
- defined more properties for wx.lib.intctrl.IntCtrl: Limited, LongAllowed, Min, Max, NoneAllowed;
- defined more properties for wx.lib.agw.floatspin.FloatSpin: DefaultValue, Digits, Font, Format, Increment, Min, Max;
- added SetMin-SetMax to wx.lib.agw.floatspin.FloatSpin.
2020-08-08 00:06:25 +03:00
Metallicow
581d68383c Add AUI_DOCKART_HINT_WINDOW_BORDER_COLOUR so it can be themed.
Hint window border color can be set now with AUI_DOCKART_HINT_WINDOW_BORDER_COLOUR

Optimizations:
Optimized venetian blind loop and removed unnecessary wxPoint to tuple in Paint method wx.Rect
2020-08-04 16:01:20 -05:00
Robin Dunn
8b670176d2 Merge pull request #1754 from DKWoods/master
Address issue #1753, fix FloatCanvas GUIMode GUIZoomIn and GUIZoomOut…
2020-07-31 20:52:52 -07:00
DKWoods
b87a4d6ed8 Fixed Case issues with FloatCanvas.Zoom method 2020-07-29 22:28:47 -05:00
DKWoods
0e5cf66fe7 Address issue #1753, fix FloatCanvas GUIMode GUIZoomIn and GUIZoomOut behavior - Part 2 2020-07-27 17:07:15 -05:00
DKWoods
b615941ee1 Address issue #1753, fix FloatCanvas GUIMode GUIZoomIn and GUIZoomOut behavior 2020-07-27 16:16:20 -05:00
lmasini
4d34e6a4ba Added SetBackgroundColour to thumbnailctrl.py 2020-07-25 07:29:20 -07:00
Robin Dunn
5b248eb5f1 Merge pull request #1736 from Metallicow/Optomize-Colour-Brush-Pen
Optomize colour brush pen
2020-07-20 10:40:39 -07:00
Robin Dunn
d2a7b13075 Merge pull request #1735 from suurjaak/numberctrl_properties
Added Value-property for IntCtrl and FloatSpin
2020-07-20 10:40:20 -07:00
Metallicow
542a32c17d Optimize Colour Brush Pen
Use builtin Colours, Brushes, Pens where needed. They are faster.
2020-07-19 23:48:39 -05:00
Erki Suurjaak
4503e9fcf2 Added Value-property for IntCtrl and FloatSpin (fixes #1734). 2020-07-19 22:10:30 +03:00
Scott Talbert
238694ac83 Fix sized_controls SetSizerType for grid sizers
SetGrowableCol / SetGrowableRow seems to have never existed as far as I can
see, so it seems this bug has existed for a long time.

Fixes #1729
2020-07-19 11:11:28 -04:00
Robin Dunn
c00b8950da Spelling fixes in wx.lib 2020-07-14 12:53:31 -07:00
Robin Dunn
509b9fa95d Merge pull request #1685 from wxWidgets/fix-issue1683
Ensure the widget has the capture before releasing it
2020-06-17 09:10:37 -07:00
Robin Dunn
fac47514b9 Merge pull request #1674 from Metallicow/Optimize-auitoolbar-OnPaint-method-loop
Optimize auitoolbar OnPaint method loop
2020-06-17 09:02:49 -07:00
Robin Dunn
2f34c2e0c9 Ensure the widget has the capture before releasing it 2020-06-16 20:13:46 -07:00
Metallicow
64e86305a3 Avoid long line per request 2020-06-16 20:53:22 -05:00
Robin Dunn
3d3ea4f5ab Merge pull request #1676 from Metallicow/Optimize-AuiDefaultTabArt
Optimize AuiDefaultTabArt
2020-06-16 17:31:48 -07:00
Robin Dunn
b2ff4ef7b2 Merge pull request #1675 from Metallicow/Optimize-aui_utilities-TabDragImage-CreateBitmap-method
Optimize aui_utilities TabDragImage CreateBitmap method
2020-06-16 17:30:27 -07:00
Robin Dunn
648bc8a8ec Merge pull request #1673 from Metallicow/Optimize-auitoolbar-OnSize-method-loop
Optimize auitoolbar OnSize method loop
2020-06-16 17:26:46 -07:00
Robin Dunn
2c4aea15ff Merge pull request #1672 from Metallicow/optimize-auitoolbar-Realize-method
Optimize auitoolbar Realize method loop
2020-06-16 17:23:45 -07:00
Robin Dunn
bcd412049c Merge pull request #1671 from Metallicow/remove-wxPy-2.9-check
Remove wxPy < 2.9 check
2020-06-16 17:18:01 -07:00
Robin Dunn
ea681b6be5 Merge pull request #1670 from Metallicow/Optimize-auitoolbar-DrawGripper-loop
Optimize auitoolbar DrawGripper loop
2020-06-16 17:17:17 -07:00
Robin Dunn
ebbfab3f72 Merge pull request #1669 from Metallicow/Reduce-item.GetState()-calls-to-1
Reduce item.GetState() calls to 1
2020-06-16 17:16:02 -07:00
Robin Dunn
610f9268a4 Merge branch 'master' into Hide-page-removed-from-wx.AuiNotebook 2020-06-16 17:12:55 -07:00
Robin Dunn
dff720ccf3 Merge pull request #1666 from Metallicow/Optimize-away-an-unnecessary-extra-wx.AuiNotebook-DoSizing()-call
Optimize away an unnecessary extra wx.AuiNotebook DoSizing() call
2020-06-16 16:57:55 -07:00
Robin Dunn
1423191c31 Merge pull request #1667 from Metallicow/Remove-unused-variables,-unused-assignments-
Remove unused variables, unused assignments
2020-06-16 16:57:12 -07:00
Robin Dunn
23bf0f5853 Merge pull request #1659 from jmoraleda/pdfviewer_alpha_fix
Explicitly indicate that we don't want an alpha channel when rendering pdf image
2020-06-16 16:52:37 -07:00
Robin Dunn
509a82784b Merge pull request #1628 from topic2k/agw_framemanager_closed_pane_event
new event wx.lib.agw.aui.EVT_AUI_PANE_CLOSED
2020-06-16 16:36:38 -07:00
Metallicow
0d27739855 Optimize AuiDefaultTabArt 2020-06-08 14:13:29 -05:00
Metallicow
38a12075b0 Optimize aui_utilities TabDragImage CreateBitmap method
local opt list comprehension is faster
2020-06-08 11:52:05 -05:00
Metallicow
a6918a726d Optimize auitoolbar OnPaint method loop 2020-06-08 10:26:11 -05:00
Metallicow
babbd16559 Optimize auitoolbar OnSize method loop 2020-06-08 09:49:28 -05:00
Metallicow
d9dcc1d7f3 Optimize auitoolbar Realize method loop 2020-06-08 09:13:41 -05:00
Metallicow
4aaec57c99 remove single var also 2020-06-08 08:46:20 -05:00
Metallicow
9173bc479f Remove wxPy < 2.9 check 2020-06-08 08:39:21 -05:00
Metallicow
e7022230ae Optimize auitoolbar DrawGripper loop 2020-06-08 08:13:26 -05:00
Metallicow
d710c0ffcc Reduce item.GetState() calls to 1
With a toolbar(s) with x amount of buttons reduce the number of calls from possibly 3-6 each iteration down to 1.
2020-06-08 07:14:58 -05:00
Metallicow
ca28d96a83 Hide page removed from wxAuiNotebook
It doesn't make sense to leave the page shown, and overlapping the
remaining pages, after removing it.

see acff8466a7
2020-06-08 02:02:54 -05:00
Metallicow
2fbac77fda Remove unused variables, unused assignments
see b5028f267d
2020-06-08 01:48:18 -05:00