Commit Graph

466 Commits

Author SHA1 Message Date
Robin Dunn
7734fb1f10 Minor demo tweaks 2019-10-29 15:22:44 -07:00
topic2k
a376bf8bb8 Use default position for PopupMenu in demo.agw.UltimateReportDemo.TestFrame 2019-10-23 09:46:24 +02:00
topic2k
2f19c5a0eb Use default position for PopupMenu in demo.agw.AUI.AuiFrame 2019-10-23 09:33:12 +02:00
Robin Dunn
762863aae0 Only decode the file content on Py2 2019-10-22 15:26:08 -07:00
Robin Dunn
33698e5d9e Show how to use a different font on a menu item 2019-10-17 14:27:37 -07:00
Robin Dunn
0c1a594344 Display the RGBA values of the system colors 2019-10-10 12:32:50 -07:00
Robin Dunn
1cbde7b685 Use wx.LIGHT_GREY as the default colour, it is closer to the real default background 2019-10-07 15:33:31 -07:00
Robin Dunn
4fe640b9d5 Leave a bit of space between the controls 2019-10-07 15:18:24 -07:00
Robin Dunn
50b9cfd95a Don't start out with a transparent colour, the ColourDialog on OSX will not change it without extra steps 2019-10-07 15:17:53 -07:00
Robin Dunn
0eba88c53a cockie --> cookie 2019-10-07 15:16:36 -07:00
Robin Dunn
8395898ea5 Merge branch 'improve-hypertreelist' of https://github.com/ThomasP0815/Phoenix into ThomasP0815-improve-hypertreelist 2019-10-07 13:35:23 -07:00
Pappenreiter.Thomas
5c373dcc67 hypertreelist demo extended 2019-10-07 13:02:42 +02:00
Robin Dunn
5afa4ed086 Revert part of 7e3844710d 2019-09-19 15:39:42 -07:00
Robin Dunn
9658a8c426 Some fixes for Py2 2019-09-12 11:58:38 -07:00
Robin Dunn
537c5cec6e Merge pull request #1323 from wxWidgets/add-wxsvg
Add support for parsing and rendering SVG files
2019-09-11 23:23:27 -07:00
Robin Dunn
3f07e0d98f Fix overview text 2019-09-11 20:28:30 -07:00
Robin Dunn
9e45e484dd Add ability to select some other SVG file to view 2019-09-11 16:37:41 -07:00
Robin Dunn
6206d20bad Various small tweaks and fixes 2019-09-11 12:56:11 -07:00
Robin Dunn
83e2212bf6 Add SVGImage_Render sample 2019-09-04 17:21:37 -07:00
Robin Dunn
fe91b450cf add a test SVG showing use of a gradient pen 2019-09-04 14:31:01 -07:00
Robin Dunn
5e6a7b49b1 Add SVGImage sample to the demo, and some example SVG files. 2019-09-04 14:31:01 -07:00
Robin Dunn
34521dc10d Fix static text showing font filename 2019-08-26 20:51:41 -07:00
Robin Dunn
1fa31ac042 Catch wx.EVT_SEARCHCTRL_SEARCH_BTN 2019-08-13 15:24:56 -07:00
Robin Dunn
c5b231e985 Fix sizer alignment assertions in demo/ActiveX_PDFWindow.py 2019-07-10 18:14:23 -07:00
Robin Dunn
86b361d938 Merge pull request #1272 from Metallicow/sizer-fixes
Fix some sizer issues with wxPy4.1
2019-07-08 21:05:12 -07:00
Robin Dunn
581f094f04 Merge pull request #1268 from tycode/dropdown-button-text-not-rendering
Fix AUI dropdown button not rendering text when icon is wx.NullBitmap
2019-07-08 20:57:39 -07:00
Robin Dunn
5614bb958f Merge pull request #1288 from Metallicow/AddPrivateFont
AddPrivateFont
2019-07-08 20:55:14 -07:00
Metallicow
9bda843002 os.path.join paths 2019-07-02 17:01:04 -05:00
Robin Dunn
4d37e3e6c1 Merge pull request #1289 from Metallicow/RendererNative-Demo
Update RendererNative Demo
2019-07-01 19:46:29 -07:00
Robin Dunn
f993886444 Merge pull request #1287 from Metallicow/update-ListCtrl-Demo
Add CheckBox stuff to ListCtrl Demo
2019-07-01 19:40:40 -07:00
Metallicow
dc0ba1f414 AddPrivateFont updated
requested changes
2019-07-01 16:46:30 -05:00
Metallicow
5f069cd500 Update RendererNative Demo 2019-06-30 23:51:47 -05:00
Metallicow
c084d75ddc AddPrivateFont
Example use of wx.Font.AddPrivateFont
2019-06-30 03:33:24 -05:00
Metallicow
d1c282eb21 Add CheckBox stuff to ListCtrl Demo 2019-06-30 02:45:14 -05:00
Robin Dunn
c041e9f1e6 Add some links at the bottom of the page to test scrolling 2019-06-28 13:26:50 -07:00
Robin Dunn
6eb4683085 Remove old docs link from sample html 2019-06-28 13:26:50 -07:00
Metallicow
e442736ee3 Fix some sizer issues with wxPy4.1 2019-06-20 19:46:45 -05:00
Rob Rolls
7e3844710d Fix AUI dropdown button not rendering text when icon is wx.NullBitmap 2019-06-18 18:52:44 +01:00
Mesalu
033fe60a92 Fix logic so command line switch overrides system settings. 2019-06-17 15:47:01 -07:00
Mesalu
a805eed69a Attempts to enforce system settings in the demo page panel.
Adds a block in the wx.stc.StyledTextCtrl version of DemoPageEditor that will try to match system settings for caret period.
Also adds the ability to read a switch off of sys.argv to manually disable cursor blinking.
2019-06-17 15:37:47 -07:00
Robin Dunn
b5b6f04fbc Move the setting of the emulation level to before the WebView is created. Add note about resetting it to default. 2019-06-10 21:43:37 -07:00
Robin Dunn
02bf03a49e Replace MSWSetEmulationLevel with a version that uses sys.executable.
Call MSWSetEmulationLevel in the demo
2019-06-10 21:43:37 -07:00
Robin Dunn
7924b3b48d A few fixes from Jorge Moraleda 2019-05-31 21:21:06 -07:00
Robin Dunn
5d078557bf Lots of updates to get caught up with wxWidgets master (3.1.3+) 2019-05-23 21:43:40 -07:00
Robin Dunn
f0e0d80dd8 workaround bad default size of wx.SearchCtrl on gtk3
(cherry picked from commit 1d1f4f712a)
2019-04-12 20:33:06 -07:00
cbeytas
b7d118df0f Add fullscreen option to CustomTreeCtrl Drag/Drop
Feature addition
Add SetDragFullScreen and GetDragFullScreen methods which changes the
way the simplified drag/drop works in the tree. This flag is passed
to the wx.DragImage.BeginDrag() method when it is called.
Also add this option to HyperTreeList.
Modify the CustomTreeCtrl and HyperTreeList demos so it can be tested.
2019-01-07 00:26:28 -05:00
cbeytas
0eb68d793f Prevent wxAssertionError in demo components
Initialize the locale in Main.py and run.py in the wxPython demo files.
Prevents wx._core.wxAssertionError:
  C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at
  ..\..\src\common\intl.cpp(1579) in wxLocale::GetInfo()
2019-01-07 00:24:12 -05:00
cbeytas
4ed3e536e5 Add sort icon support to HyperTreeList
Feature addition.
Add SetColumnSortIcon() method to HyperTreeList so that a native sort
arrow can be easily shown in the header columns. For some reason does
not work on GTK (won't draw arrow) but works great on Windows/MacOS.

Modify the demo with LIST_COL_CLICK event options so it can be tested.
2019-01-07 00:23:45 -05:00
cbeytas
ac0f578a01 Fix CustomTreeCtrl/HyperTreeList background color
CustomTreeCtrl and HyperTreeList use wx.SYS_COLOUR_LISTBOX for their
default background colors. This defaults to dank Grey on MSW/GTK/MacOS
even though the TreeCtrl and ListCtrl on all three platforms default
to a white background. Use a trick from UltimateListCtrl to take
default colors from wx.ListCtrl.

This can be seen in the demos, except that the CustomTreeCtrl demo
forces its background to wx.WHITE. With these changes forcing the
background color is no longer necessary and allows the controls to
take on the native background color for themes that change it.
2019-01-07 00:12:00 -05:00
cbeytas
8113033d6e Recalculate CustomTreeCtrl on multiline text
In CustomTreeCtrl and HyperTreeList the SetItemText method recalculates
the size of the item row in which the text was changed. If the number
of lines in the text changes the entire tree must be recalculated
as all items below must be shifted to compensate. This change attempts
to recalculate the entire tree only when necessary (when number of
lines change) in order not to slow down existing code that performs a
lot of SetItemText() operations on an unfrozen tree.

Add a "Change Item Text" option to the CustomTreeCtrl and HyperTreeList
demos so that this can be tested. Before this fix, changing the number
of lines of text in an item would leave gaps or create overlaps
between items in the tree.
2019-01-06 23:47:57 -05:00