Jorge Moraleda
1936c09a35
Enable configuration of whether popup dialog should align center, right or left with respect to parent ctl. Default is center which is the old behavior.
2022-12-08 23:25:02 -06:00
Kazuya O'moto
f514770942
Fix TypeError float to int
...
TypeError: ProgressDialog(): argument 'maximum' has unexpected type 'float'
TypeError: ProgressDialog.Update(): argument 1 has unexpected type 'float'
TypeError: Sleep(): argument 1 has unexpected type 'float'
2022-12-07 01:19:23 +09:00
Robin Dunn
3ee614e0e8
Merge pull request #2284 from pchemguy/lib-agw-aui-dockart
...
Changed float division to integer division in lib-agw-aui-dockart.py
2022-10-18 17:30:56 -07:00
Robin Dunn
9b3e4d3431
Merge pull request #2277 from komoto48g/textedit-mixin
...
listctrl TextEditMixin
2022-10-18 17:27:57 -07:00
Robin Dunn
363fdcde74
Merge pull request #2264 from pchemguy/wxlib-wxcairo-wx_pycairo
...
Added sip.voidptr->int type casting in wx_pycairo.py
2022-10-18 17:20:18 -07:00
Robin Dunn
1814ca813b
Merge pull request #2262 from pchemguy/wxlib-printout-draw-typecasting
...
Making explicit float->int type casting for DC.DrawXXX
2022-10-18 17:18:54 -07:00
PChemGuy
0a2c573c91
Changed float division to integer division in lib-agw-aui-dockart.py
...
wx.DC.DrawXXX expect numeric arguments to be integers.
2022-09-15 15:08:28 +03:00
komoto
ef8f887618
Remove TE_RICH2 style
...
to avoid selection disappearing on a second focus
(of the same format item).
2022-09-11 13:07:58 +09:00
komoto
11f7c42c8d
Fix OpenEditor offset to integer
2022-09-11 12:58:15 +09:00
PChemGuy
87e7ded2b1
Added sip.voidptr->int type casting in wx_pycairo.py
2022-09-04 15:00:03 +03:00
PChemGuy
5aed416754
Making explicit float->int type casting for DC.DrawXXX
...
Used DC.DrawXXX functions expect integer coordinates, but this module freely mixes both float and integer values. A quick fix is to add explicit type casting in all DC.DrawXXX calls.
In the long run, either calling modules should control numeric types or DC.DrawXXX methods should handle float type as well.
2022-09-04 11:23:38 +03:00
Infernio
aa4394773a
Fix pdfViewer for Python 3.10
...
Needs ints instead of floats in these two places. Didn't notice any
others, but there may be more.
2022-09-01 14:57:56 +02:00
Robin Dunn
7c4d21d778
Merge pull request #2247 from CarstenGrohmann/listctrl_format_doc
...
Fix docstring layout for ColumnSorterMixin.GetSortState()
2022-08-30 18:49:19 -07:00
Carsten Grohmann
5eef583d7c
Fix docstring layout for ColumnSorterMixin.GetSortState()
2022-08-22 20:47:55 +02:00
PChemGuy
af3721f167
Explicit NumPy.float64 to int typecasting in FCObjects.py
...
I cannot tell whether the original code worked before, but this explicit typecasting is necessary now.
The issue occurs, for example if attempting to execute "PieChart.py" or "ScaledBitmap2Demo.py" in "samples\floatcanvas". Without typecasting, type errors are thrown, such as "TypeError: Image.Scale(): argument 1 has unexpected type 'numpy.float64'".
Apparently, this problem might be due to recent updates in Python and NumPy.
2022-08-20 21:43:22 +03:00
PChemGuy
112605f540
Missing NumPy package reference in FloatCanvas.py
...
Package reference (N) is missing when NumPy type "float_" is used.
2022-08-20 09:27:31 +03:00
Scott Talbert
9986a0d5c2
pypubsub: Replace deprecated inspect.getargspec
...
inspect.getargspec was removed in Python 3.11. This is a backport of:
089c7a73f8
2022-08-08 22:35:58 -04:00
Robin Dunn
fb2e6a8ba9
Update cython to latest version (for Python3.11)
2022-08-07 12:51:39 -07:00
Robin Dunn
503d42cd55
Merge pull request #2219 from arjones6/master
...
Fixes for flatmenu.py Remove and DestroyItem
2022-08-06 12:56:26 -07:00
Robin Dunn
ea7e5cbc1e
Merge pull request #2218 from jmoraleda/less_opinionated_popupctl
...
Popup ctl respects the parameters passed to init
2022-08-06 12:51:01 -07:00
Robin Dunn
51f02ec0c2
Merge pull request #2215 from alexdewar/patch-1
...
IntCtrl: Change default colour to wx.NullColour
2022-08-06 12:48:31 -07:00
arjones6
937a9b31e9
Update flatmenu.py
...
FlatMenu fix for passing ids to Remove and DestroyItem
2022-08-02 14:42:52 -04:00
Jorge Moraleda
84d5c1ded7
Popup ctl respects the parameters passed to init
2022-08-01 17:18:42 -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
Infernio
2f6c469607
Support newer PyMuPDF versions
...
PyMuPDF 1.18 renamed all of its camelCase fields and methods to use
snake_case instead, and a later version (probably 1.19) removed the
deprecated aliases. This patch attempts to use the newer name first
(since most people will probably be using a newer version of PyMuPDF)
and falls back to the older name if that fails.
2022-07-08 15:22:46 +02:00
Robin Dunn
369d49f621
Merge branch 'swt2c-sip6'
2022-06-30 14:13:57 -07:00
Scott Talbert
90171ba216
Update to use sip 6.6.x
...
1) Switch to running sip using its new sip-build command line interface,
which requires writing out a pyproject.toml to configure it.
2) Generate the sip build file (sbf) ourselves since sip no longer writes
them.
3) Remove the embedded sip module code and generate it on the fly during
the build process.
Fixes #2169 .
2022-06-18 13:54:17 -04:00
DietmarSchwertberger
a7fdbd4fe6
don't cache GetScrollPixelsPerUnit
2022-05-31 19:31:29 +02:00
Robin Dunn
727f3aff2a
Merge pull request #2158 from komoto48g/shell-stc
...
Fix issue #2157 : wx.py.shell.Shell.OnHistorySearch
2022-05-22 23:01:11 -07:00
Robin Dunn
59d87d948b
Merge pull request #2134 from DietmarSchwertberger/ISSUE2120
...
fix issue #2120 : wx.lib.agw.multidirdialog.MultiDirDialog.GetPaths()
2022-05-21 12:38:50 -07:00
Robin Dunn
c740b6886d
Merge pull request #2139 from komoto48g/fix-eventwatcher
...
Fix eventwatcher checkAll(check=False)
2022-05-21 12:36:44 -07:00
Robin Dunn
de59dd924a
Merge pull request #2140 from komoto48g/fix-shell
...
Fix shell getMultilineCommand
2022-05-21 12:35:15 -07:00
Robin Dunn
baa09183f6
Merge pull request #2144 from DietmarSchwertberger/ISSUE_1841
...
fix gridmovers issue #1841
2022-05-21 12:34:27 -07:00
komoto
de5abf4219
Override editwindow SetSelection as a temporary patch
...
Better to override editwindow (a common parent of shell and sliceshell)
2022-05-20 13:22:43 +09:00
komoto
85466c87b8
Revert "Override SetSelection as a temporary patch"
...
Better to override editwindow
2022-05-20 13:09:07 +09:00
Paul McCarthy
d1088089ad
BF: Proportion parameter must be an integer
2022-05-16 15:45:30 +01:00
komoto
3381f5bfb4
Override SetSelection as a temporary patch
...
Patch for miss-insertion position when from_ > to_.
This is needed until the stc.StyledText.SetSelection bug is fixed.
2022-05-12 23:47:22 +09:00
komoto
efa85f1798
Fix OnHistorySearch range+ error
...
Fix TypeError: unsupported operand type(s) for +: 'range' and 'range'
2022-05-12 23:24:25 +09:00
Scott Talbert
37ba9563b6
Update unittests to work with wxWidgets 3.1.6
2022-05-02 22:35:18 -04:00
DietmarSchwertberger
d91db0f6df
fix gridmovers issue #1841
2022-05-02 22:58:05 +02:00
komoto
8f33412a00
Fix eventwatcher checkAll(check=False)
...
[None] button => uncheck all items
2022-04-26 23:05:12 +09:00
komoto
ab6ec5b9fd
Fix shell getMultilineCommand
...
Add limitation to avoid an infinite loop at EOF,
when programmatically called on the current prompt.
2022-04-26 22:30:49 +09:00
DietmarSchwertberger
3b94574756
fix issue #2120
2022-04-11 20:53:41 +02:00
Paul McCarthy
7f2e5b41ba
MNT: Coerce argument types in call to DC.DrawText
2022-02-24 19:14:11 +00:00
Scott Talbert
7c8318e849
Merge pull request #2078 from swt2c/pyplot_point_labels
...
Fix PlotCanvas point label drawing on Linux
2022-01-24 19:57:51 -05:00
Scott Talbert
eb1c2f9c4b
Merge pull request #2076 from swt2c/deprecated_escape_sequences
...
Fix a bunch of DeprecationWarnings due to invalid escape sequences
2022-01-24 19:56:28 -05:00
Scott Talbert
f729eef492
Fix PlotCanvas point label drawing on Linux
...
Switch to using the same point label drawing method as darwin.
2022-01-11 20:14:04 -05:00
Scott Talbert
b2199e299a
plotcanvas: avoid trying to adjust scrollbars if nothing drawn
...
For example, if Clear() is called on a plotcanvas, _adjustScrollbars()
will not work, so avoid trying to do it if nothing is drawn currently.
2022-01-11 19:56:28 -05:00
Scott Talbert
2871c46d33
Fix a bunch of DeprecationWarnings due to invalid escape sequences
...
Fixes #1454 .
2022-01-11 11:23:06 -05:00
Scott Talbert
77fa6cf8cc
Merge pull request #2074 from petrasovaa/patch-4
...
Fix for Python 3.10
2022-01-09 10:12:50 -05:00