7,239 questions
Advice
0
votes
0
replies
34
views
Creating a wxpython comboctrl with editable text portion while the list is dropped down
I would like to create a wxpython comboctrl or something similar that allows entering text while the dropdown list is open. The goal is to allow the user to enter the starting characters of the ...
0
votes
1
answer
59
views
Tooltips for submenus are not showing in the status bar of the wxPython application
I created a Toy example code in order to reproduce the problem I need to tackle which is also happening in the main application I am developing.
The code was exceuted under Python 3.13.5.
Toy example ...
1
vote
2
answers
94
views
wxPython StyledTextControl spaces are not 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
85
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
65
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
74
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
59
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
96
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
414
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
79
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
220
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 ...
0
votes
2
answers
122
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
427
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
75
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
151
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 ...