7,244 questions
0
votes
0
answers
6
views
wxPython StyledTextControl spaces are styled
I am trying to write a small text editor using the StyledTextControl in wxPython. Most of the styling is working, but spaces remain unstyled and are shown as white areas, the picture shows the effect.
...
0
votes
1
answer
74
views
No module named 'wx._msw'
Please I need help n solving this problem.
I want to compile a wxpython app in mac OS Tahoe 26.0.1 with pyinstaller But I keep getting this error.
No module named 'wx._msw'
It is shown in the ...
1
vote
1
answer
61
views
wxPython - Drawing a line object when clicking a button
My main purpose is to draw a line on ShapeCanvas when when clicking the Add Edge button.
The code I wrote is below:
import wx
import wx.lib.ogl as ogl
class MyPen:
def __init__(self, color, width, ...
0
votes
1
answer
58
views
Illegal instruction when importing pandas along with wxpython (python 3, Windows)
Trying to upgrade my python 2.7 scripts to the latest python 3.x for my PC running Windows 7-x64. To do so, I installed python 3.8.9.
I get a nasty error when I press ENTER after typing "import ...
1
vote
0
answers
55
views
Matplotlib blitting - version 3.7.2 vs 3.9.0 - error wxMemoryDCImpl::wxMemoryDCImpl(): NULL
Recently I upgraded matplotlib from version 3.7.2 to 3.10.5, and I have this error following a blit method in a wxpython embedded canvas:
Traceback (most recent call last):
File "C:\Users\vjo\...
0
votes
1
answer
81
views
Wxpython with matplotlib - resize plot
I’m using matplotlib in wxpython, and here is what I’m trying to do…
I’d like to define my figure to be a specific (user chosen) size…say 8 inches wide by 6 inches high.
Then, I’d like the user to be ...
0
votes
1
answer
297
views
How can I install Wxpython on Fedora?
Please, how can I install wxpython on Fedora os?
I have tried installing it but I got the following error. Thank you in advance for your answer.
I have the C++ compiler installed on my computer but I ...
0
votes
0
answers
75
views
Wrong float display in SpinCtrlDouble with wxPython
I am designing a GUI for instrumentation control using wxPython. I am first setting up all the fields and controls I need. Among those controls are SpinCtrlDouble I use to define frequencies and ...
-1
votes
1
answer
154
views
Can anyone help getting wxPython to build?
I am trying to build wxPython (version 4.2. 4a1) from source for python 3.12.3 using wxWidgets (version 3.2. 7. 1) and SIP (version 6.11. 0) in a Docker container based on Ubuntu 24.04. The build ...
1
vote
2
answers
98
views
How can I use a wx.FileDialog to select a file which is locked by another process
I'm trying to use the wx.FileDialog class to select the name of a file. I don't want to open it. This is a minimal example of what I'm trying to do:
import wx
if __name__ == '__main__':
app = wx....
0
votes
0
answers
250
views
pip building wheel for wxPython on Ubuntu
I have tried to install wxPython on Python versions 3.10, 3.12, and 3.13, and they all fail with much the same error.
I've installed as many of the required packages as are necessary.
Does anyone have ...
0
votes
1
answer
73
views
wxPython StaticBitmap behavior changed with/before version 4.2.2?
In the course of buying a new laptop, I've upgraded wxPython to version 4.2.2, and in an otherwise-fine GUI application (including tree, forms, perspectives, ... all provided with wxPython), the ...
0
votes
1
answer
124
views
WxFormBuilder warning - First ID is less than 5999
WxFormBuilder, version 4.2.1 and WxPython 4.2.2
After upgrading from earlier versions of WxPython and WxFormBuilder, I loaded in a previously building and working project. When I click on 'Generate ...
0
votes
0
answers
18
views
How to extend selection to home and end after mouse drag over several lines in StyledTextCtrl?
The purpose: For the specific OCR post-processing application, I am displaying part of the text that should be copy/pasted to another application. It should be as much minimalistic and user friendy as ...
0
votes
0
answers
221
views
Installing/Compiling wxPython for Python 3.13t (free threaded)
I want to use wxPython under free threaded Python 3.13. Currently, there is no wheel file available.
Problem 1: Pip will build from source but fail due to missing packages.
Solution 1: I installed ...