Commit Graph

4038 Commits

Author SHA1 Message Date
cbeytas
5f5e1fbd5b Fix window positioning during draw
In CustomTreeCtrl and HyperTreeList the `SetPosition` method is used
to adjust window positions. This can't set a Y value of -1 and instead
leaves the window at its last position. Use the `Move` method instead.
Also made sure this positioning is done before a possible call to the
`Show` method which prevents some flicker.
2018-11-21 14:29:45 -05:00
cbeytas
98cc99e11c Fix up/down/end/home keys and add PgUp/PgDn
CustromTreeCtrl key handling fixes:
UP key not working if previous item's children were disabled.
DOWN key not working if the next parent was disabled.
END not working when the last item in the tree is disabled.
HOME not working if the top item in the tree was disabled.

Adds handling for PageUp and PageDown keys.
Previously CustomTreeCtrl would let these keys be handled by the
ScrolledWindow subclass which scrolls by a page but doesn't update the
selection. This change moves the selection to the first/last visible
item, or by an entire page if the first/last visible item is already
selected. This mimics native control handling and avoids disabled items.

Adds two methods: GetPrevShown() and GetNextShown().
2018-11-21 14:28:06 -05:00
cbeytas
ed2e8eac5e Guard against unlinked items in CustomTreeCtrl
The GetNextSibling() and GetPrevSibling() methods in CustomTreeCtrl
will throw an exception if the item has been deleted from the tree.
This happens whenever an item is deleted but the selection isn't
updated. The exception will be thrown on the next key press. Can be
observed easily in the HyperTreeList demo.
2018-11-21 14:24:50 -05:00
cbeytas
87b100649e Fix exception when no selection in HyperTreeList
If a HyperTreeList is created with only the root item present, and not
selected, an exception will be thrown if any key is pressed.
GetFirstVisibleItem() returns None, even though the root item is
present and visible. Only an issue if the TR_MULTIPLE flag is set.
2018-11-21 14:16:50 -05:00
cbeytas
435d228196 Add additional key handling to customtreectrl
Allow use of numpad +. -. and * keys as well as the Windows menu key in
addition to regular keys.
Fix wrong method call to self.ExpandAll(), now self.ExpandAllChildren().
Note: The code still compares against ord('+') and ord('*') which isn't
valid for wx keycodes and will never evaluate properly.
If the user presses the plus '+' button, on most keyboard this will
result in an ord('=') keycode with the SHIFT modifier set.
2018-11-21 14:01:10 -05:00
cbeytas
b2067d1d61 Fix line drawn through root item in customtreectrl
Regression caused by PR #886
`on_the_right` is used as positional argument where `separator` is
expected causing a line to be drawn through root item.
This change specifies keyword arguments explicitly.
2018-11-21 13:59:43 -05:00
cbeytas
5706dc2501 Update docstrings for CustomTreeCtrl/HyperTreeList
Warnings about accessing some GenericTreeItem methods directly.
Some documentation updates and notes on some methods.
2018-11-21 13:57:59 -05:00
Metallicow
230bf5d6d3 Optimize All PNGs Nov2018
Since I had to fix a image issue and optimize it. I decided to rerun FileOptimizer 13.30.2393 over all pngs. Small bytes for some that had been optimized before, but this comit covers all pngs that may have been missed in the past. Maybe revisit running them all again in 2 years. Total time to process all pngs: approx 8 hours.
As technology improves this will only get better/faster when downloading, loading in browser, embedded, etc...
2018-11-13 16:08:12 -06:00
Metallicow
794c694169 Fix size of image to match others. Should fix layout issue 2018-11-13 09:43:10 -06:00
Robin Dunn
79ddece4e9 Use forward slashes in sphinx output
(cherry picked from commit 7b3a62102c)
2018-11-08 20:31:30 -08:00
Robin Dunn
74bc4b4f03 Merge pull request #1077 from Metallicow/ColourCubeDialog-box-flickering
Fix flickering with boxes/lines drawn on colorcube/wheel images

(cherry picked from commit 15dd7c7cec)
2018-11-08 20:20:46 -08:00
Robin Dunn
106f2aa733 Merge pull request #1076 from Metallicow/HyperTreeList-Fix
Fix dc.DrawRectangleRect to dc.DrawRectangle

(cherry picked from commit 3aa4f289e9)
2018-11-08 20:10:13 -08:00
Robin Dunn
68dcd7872a Merge pull request #1066 from garibarba/master
Fix bug due to type mismatch.
2018-11-08 19:55:21 -08:00
Robin Dunn
122d28fc4c Add Python 3.7 to the classifiers
(cherry picked from commit 6b6f2a932f)
2018-11-08 15:29:35 -08:00
Robin Dunn
586f9ccd22 Add Enabled property for wx.MenuItem
(cherry picked from commit af7f52b640)
2018-11-01 17:06:46 -07:00
Robin Dunn
d8ca61588d Merge pull request #1069 from RobinD42/fix-issue1068
Fixed the wrappers for wx.html.HtmlWindow.OnOpeningURL

(cherry picked from commit 05f871e9f7)
2018-10-31 18:43:28 -07:00
Guillermo González de Garibay
a71f32768d Merge remote-tracking branch 'upstream/master' 2018-10-30 09:02:48 +01:00
Robin Dunn
ceb2f46720 Merge pull request #1065 from RobinD42/fix-issue1061
Transfer ownership of the wx.aui.AuiNotbook.SetArtProvider art parameter

(cherry picked from commit a55e4ec45d)
2018-10-29 22:18:23 -07:00
Robin Dunn
653d91b372 Merge pull request #1064 from RobinD42/fix-issue1060
Ensure sip knows the pure virtuals are present in wx.html.HtmlPrintout

(cherry picked from commit 17f52dfd14)
2018-10-29 22:18:08 -07:00
Robin Dunn
882401e9d9 Merge pull request #1063 from RobinD42/fix-issue997
Various updates for wxJoystick

(cherry picked from commit 12f20a4018)
2018-10-29 19:01:24 -07:00
Robin Dunn
36f8cb79bf Merge pull request #1058 from RobinD42/fix-issue1032
Ensure colours set in TreeItemAttr are instances of wx.Colour

(cherry picked from commit 8bfe2199dc)
2018-10-26 18:18:22 -07:00
Robin Dunn
e92d572267 Merge pull request #1057 from RobinD42/fix-issue1025
fix test suite errors in wx/py/tests

(cherry picked from commit ebb3de75ed)
2018-10-26 18:17:52 -07:00
Robin Dunn
33b13b441b Merge pull request #1056 from RobinD42/fix-issue1024
Fix AUI sample to properly use a range of wx.WindowIDRefs

(cherry picked from commit f38671044c)
2018-10-26 18:17:37 -07:00
Robin Dunn
b9eb746f40 Merge pull request #1055 from RobinD42/fix-issue1013
Fix tickmarks when there is a negative bounds

(cherry picked from commit 24a455acb3)
2018-10-26 18:17:24 -07:00
Robin Dunn
cf7995027a Merge pull request #1038 from jgehw/optical-appearance-fix
fix optical grid appearance
2018-10-24 19:57:47 -07:00
Robin Dunn
da9f69c380 Merge pull request #1050 from mesalu/fix_1049
CustomTreeCtrl and HyperTreeList fixes
2018-10-24 19:36:41 -07:00
Robin Dunn
cb77b7cf89 Merge pull request #1048 from SilverViking/master
Fixed bug with image in floatcanvas incorrectly getting rescaled to zero width and height during frame resize.
2018-10-24 19:31:34 -07:00
Robin Dunn
e4da73bfed Merge pull request #1045 from mesalu/fix_1042
fix wx.EvtHandler.QueueEvent code snippet
2018-10-24 19:29:58 -07:00
Felipe Calliari
94e9a38085 fix DeprecationWarnings in frame.py (#1043)
This commit solves the following messages:
    DeprecationWarning: Menu.Append() is deprecated
2018-10-24 19:27:47 -07:00
Robin Dunn
ec8f14da1c Merge pull request #1037 from ibell/patch-1
Bump default ubuntu distro in builds to 18.04
2018-10-24 19:25:18 -07:00
Mesalu
d27efc3158 Fix performance issue in customtreectrl, beautify some ugly code. 2018-10-24 18:38:34 -07:00
Frank Vernaillen
6d24a91990 Fixed bug with image getting rescaled to zero width and height. 2018-10-23 14:41:40 +02:00
Mesalu
484fb84bb9 remove misleading comments, do not create a copy of strs 2018-10-22 14:30:17 -07:00
Robin Dunn
2f8d1b2e9a wxWidgets has been fixed, enable use of SDL again.
Update wxWidgets to latest master.
2018-10-17 11:11:49 -07:00
Robin Dunn
8d50277917 Merge branch 'fix-sdl' 2018-10-16 20:13:05 -07:00
Robin Dunn
a11a476672 Merge pull request #1039 from RobinD42/fix-issue969
Ensure all text goes into MemoryFSHandler files as utf-8 data

(cherry picked from commit b8a922ef46)
2018-10-16 20:11:49 -07:00
Robin Dunn
3e25eade30 update to newest wxWidgets master 2018-10-16 16:32:48 -07:00
Robin Dunn
6b0776e41b turn off SDL for now, there's a link bug in wxWidgets 2018-10-16 16:32:22 -07:00
jgehw
f028640215 fix optical grid appearance
- fixed optical appearance of row labels w.r.t. simple 3D effect
- fixed helpers for determining size (becomes important if you subclass a label renderer spanning multiple rows or columns)
2018-10-15 17:50:12 +02:00
Ian Bell
35739c1578 Bump default ubuntu distro in builds to 18.04 2018-10-13 21:51:01 +02: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
e9e3736fa0 Merge pull request #1035 from RobinD42/fix-issue961
include wxpy_api.h

(cherry picked from commit 7300aa4718)
2018-10-11 21:15:10 -07:00
Robin Dunn
b6a38c1cb8 Add changelog 2018-10-10 19:41:19 -07:00
Robin Dunn
2f540a91e6 Merge pull request #1034 from RobinD42/fix-issue958-291-wxAccessible
Add wxAccessible and a tool to generate C++ stubs

(cherry picked from commit 3a9f37f2aa)
2018-10-10 19:40:59 -07:00
Robin Dunn
0cfefbbd47 Merge pull request #1030 from RobinD42/fix-issue906
Fix wx.ListCtrl.Append when wx.LC_SORT style is used

(cherry picked from commit 7b6fbf2a52)
2018-10-08 21:14:09 -07:00
Guillermo González de Garibay
2299eae853 Fix input. Takes only bytes, not bytearray. 2018-10-08 14:25:39 +02:00
Robin Dunn
e215a1df7e Merge pull request #1027 from RobinD42/fix-issue926
Mark wx.FileSystemHandler.OpenFile as a factory function

(cherry picked from commit 4c1ff7a1b4)
2018-10-04 08:40:10 -07:00
Robin Dunn
bf60321011 Add issue number
(cherry picked from commit 547840f7de)
2018-10-03 19:32:20 -07:00
Robin Dunn
c66c83752a Merge branch 'wingel-master' into wxPy-4.0.x
(cherry picked from commit b4af342c89)
2018-10-03 19:32:07 -07:00