32 Commits

Author SHA1 Message Date
Scott Talbert
bb35bcd9d9 Fix bugs in Python2 / six removal 2025-02-03 20:13:56 -05:00
Alexandre Detiste
66a9320917 finish removing six 2025-02-02 20:30:33 -05:00
Alexandre Detiste
0257f755cf remove most of Python2 compatibility code 2025-02-02 20:17:45 -05:00
Alex Dewar
dafb70b689 IntCtrl: Change default colour to wx.NullColour
Fixes #2199.

The problem is that the default colour is currently wx.BLACK which will basically be invisible if the user has a dark theme. Use ``wx.NullColour`` instead so that it can just use the default text colour for the user's theme.

Note that this does not fix the second part of issue #2199 (the colours still don't change if the control is disabled) but I feel this should be a separate issue now.
2022-07-25 15:07:39 +01:00
Eric Poulsen
5da1fd2d89 fix for negative number entry 2020-12-05 16:17:37 -08: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
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
Erki Suurjaak
4503e9fcf2 Added Value-property for IntCtrl and FloatSpin (fixes #1734). 2020-07-19 22:10:30 +03:00
Per A. Brodtkorb
fc1823315b Fixes issue # 1554:
Replaced "== None" and "!= None" with "is None" and "is not None", respectively, because the former is slower and error-prone.
2020-03-23 11:53:36 +01:00
Robin Dunn
73e6aa759c Initialize __oldvalue 2020-02-18 15:12:01 -08:00
rr
78cd863d2b Initialize the old value of IntCtrl to the default one
Previously, it was initialized to zero.  Thus, the EVT_INT event
wouldn't be triggered if we change the value to zero regardless of the
initial value.  This change fixes the issue.
2019-09-17 00:03:33 +03:00
Mesalu
b78e50c913 Avoid redundant retry
Avoid attempting to recast to `int` when it had just failed.
2018-06-27 09:53:43 -07:00
Mesalu
7b744beacd Fixes #898 2018-06-26 18:58:36 -07:00
Robin Dunn
b1b0c9e297 wx.NewId() --> wx.ID_ANY or wx.Window.NewControlId() as appropriate 2018-06-19 10:31:56 -07:00
Mark Amery
1e1c4356c4 Fix setting IntCtrl to None wrongly raising 2018-03-16 12:51:45 +00:00
Andrew Murray
2cfe4ad989 Fixed typos 2017-02-26 14:15:49 +11:00
Metallicow
a8452dd575 Trim Whitespace lib directory 2016-10-12 22:21:38 -05:00
Robin Dunn
cc3190e240 Lots more docstring refs fixed 2016-07-06 20:20:10 -07:00
Robin Dunn
ed4756b902 Remove wx.lib.six and use the stock six module instead,
and add it as an installation dependency.
2016-06-30 20:07:57 -07:00
wernerfb
2dae793a67 - correct as per Robin's comments 2016-02-28 09:06:07 +01:00
wernerfb
fcd1d73b7d just use sys.maxsize instead of going via six 2015-07-25 18:05:58 +02:00
wernerfb
afbe4e9a21 update documentation 2015-07-25 18:02:59 +02:00
wernerfb
92eab4f8fb - add a simple unittest
- force __allow_long to True on Py3
2015-07-24 16:08:41 +02:00
wernerfb
b6e016fb3f make it work on Py3 2015-07-24 15:51:20 +02:00
Robin Dunn
bcbdcd9631 Remove more CVS $Id$ and $Revision$ tags, and a bit of code that uses them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-11 03:35:32 +00:00
Robin Dunn
bbeef1173c Fix wxPython.lib —> wx.lib in file header comments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-14 05:55:14 +00:00
Robin Dunn
2fb6f00867 PR 42 from Metallicow. Py3 and Phoenix updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-11 23:13:15 +00:00
Robin Dunn
9f24505715 Merge of PR 11 with the whitespace-only changes omitted.
See https://github.com/RobinD42/Phoenix/pull/11

Mostly phoenix-port changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-10 01:15:34 +00:00
Robin Dunn
38e529ac51 intctrl Phoenix Fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-13 07:17:29 +00:00
Robin Dunn
247673201b Copy (branch) wx.lib, wx.py and wx.tools from Classic, and include subpackages branched from 3rdParty
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-13 01:36:07 +00:00
Robin Dunn
a30dfe91e2 I wasn't ready to add this yet.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-22 21:29:15 +00:00
Robin Dunn
c8c2e1d97b set svn:eol-style to native
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-22 21:02:42 +00:00