All Questions
Tagged with wxpython-phoenix or wxpython
7,243 questions
0
votes
1
answer
71
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
59
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
56
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
53
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
80
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
263
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
143
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
87
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
225
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
70
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
121
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
212
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 ...
1
vote
1
answer
95
views
Please how do I compile a wxpython app that runs a flask server?
The wxpython application does not work as it is supposed to work after compiling it with pyinstaller. When I run the python code with the python interpreter, it works properly. But when it is bundled ...
0
votes
1
answer
44
views
How can I prevent wx.StaticText from removing consecutive whitespaces in it's input string?
I want to print text on a window such that the text is justified (like in MS-Word). when I input a string to wx.StaticText(panel, label=txt), it completely ignores duplicate spaces and replaces them ...
0
votes
1
answer
57
views
Rect() TypeError while converting from Python 2 to Python 3
I'm getting the weirdest error while converting an application from Python 2 to Python 3.
Briefly this application uses wxPython to create an interface where the user can draw different objects on a ...
2
votes
2
answers
62
views
How do I synchronize the scroll of two multiline text boxes with wxPython?
I'm currently in the process of coding an application with wxPython, in Python 3.12. The app contains two multiline text boxes, side by side: the box on the left takes user input, and the box on the ...
0
votes
2
answers
53
views
WxPython Label catches focus on start
I don't know whether wxpython is the problem or my code, but the label always catches focus if I want to start my code. Even clicking somewhere else won't let go, and it is still focused.
here is my ...
0
votes
1
answer
117
views
Transparent background PNG in wxpython
Currently using WXpython creating a chess puzzle game and I'm trying to display 2 images, one on top of the other.
The issue is, despite the original image of the white pawn in my files having a ...
0
votes
1
answer
54
views
Python pass string ref into method of COM (ActiveXCtrl)
I am trying to use a method present in an ocx file.
The definition of this method is (resolution from VS - c#)
VS Screen
[DispId(17)]
[MethodImpl(MethodImplOptions.PreserveSig | MethodImplOptions....
1
vote
1
answer
61
views
wxPython - Panel doesn't cover all frame on show if frame full screen
If I resize the window and I make it full screen again I get the result I desire:
Before
After resize window and full screen
The panel is the one on the far right with a more black grey color.
I have ...
0
votes
0
answers
75
views
Getting "'Preload additional info' has encountered a problem. when opening a file in PyDev
Eclipse Platform:
Version: 2024-06 (4.32)
Build id: I20240601-0610
PyDev for Eclipse 12.2.0.202409031913
wxPython 4.2.2
wxFormBuilder Version 4.2.1-0-g80c4cb6
#######
When I open a file in ...
0
votes
2
answers
95
views
DragNDrop for Python using wxFormBuilder
My existing wxPython app is based on a wxFormBuilder skeleton.
It will accept new image files to work with via a file selector dialog.
Now, I would like to make drag-n-drop available, but am stuck on ...
0
votes
2
answers
168
views
How do I use wx.NewIdRef() correctly?
I'm on wxPython version 4.0.7.post2, and Python version 3.8.2. I've enabled warnings to catch the things I need to change in preparation for upgrading both Python and wxPython. One of the warnings I ...
1
vote
0
answers
46
views
wxPython: Cycling update of wx.ListCtrl DataTable from RS232 interface
I'm trying to make a program that reads in cycle the data from RS232 interface and shows it on wx.ListCtrl. The problem I have is that the data updates each 1 second and it's seems to be to high to ...
1
vote
3
answers
171
views
Gaussian blur from PIL doesn't take alpha into account
I'm trying to apply gaussian blur to a PIL.Image which has transparency, but blurring doesn't seem to be applied to the alpha channel.
Here's my code:
import wx
from PIL import Image, ImageFilter
...
0
votes
1
answer
118
views
display SVG with gaussian blur in wxPython
I want to display in a wxPython frame an SVG image that uses a feGaussianBlur. The following example shows the image but the gaussian blur is not applied. I checked the SVG code, and it seeems fine.
...
-1
votes
1
answer
53
views
Python use wx.CallAfter into HttpServer
I am using python 2.7 and wxPython 2.8. I created a simple desktop application from which the user can start an HTTPServer created from the one builtin in python itself. Server is created in this way:
...
0
votes
0
answers
124
views
WxPython Align text in TextCtrl Center Vertical
I am trying to center the text inside a TextCtrl. Many solutions to other similar questions rely on using ALIGN_CENTER_VERTICAL however I cannot do this as I want my text box to be larger than the ...
1
vote
0
answers
77
views
Python312\python -OO setup.py build_exe throws Return code: 3221225477
In my setup_base.py script, when I import wx and run:
Python312\\python -OO setup.py build_exe
I am getting an exit code of 3221225477. When I remove the import wx, it succeeds with an exit code of 0....
0
votes
1
answer
99
views
wxwidgets minimal works on local display but not on x terminal [closed]
I have two wxwidgets hosts:
Windows 11 VirtualBox 7.0.14 161095 Fedora 39 (guest) wxWidgets 3.2.4
Fedora 39 (native) wxWidgets 3.2.4
The vbox host will play to an MobaXterm Personal Edition v24.0 ...
0
votes
1
answer
163
views
wxPython wx.Frame Get/Set Position doesn't work under Wayland?
I have a wxPython application that remembers its windows positions and sizes by writing them down into a configuration file upon closing, and restoring them from the config file upon launch. Worked ...
0
votes
1
answer
78
views
wxPython ‘RuntimeError: wrapped C/C++ object of type JLCPCBTools has been deleted’
I'm struggling to debug an issue users are reporting with the kicad JLCPCB tools plugin. I feel like this is due to a misusage of queues or objects but I'm stuck without any next step ideas.
The queue ...
0
votes
1
answer
91
views
How to create a shadow for a popup window in wxPython?
For example, like google drive. Google drive is developed using wxPython, which means there is such a possibility
Screenshot from Google Drive
Ideas using Bitmap and DC come to mind, but I would like ...
0
votes
1
answer
57
views
Wrapping issues with wxPython
I am building an app using wxPython but I am having trouble with the text wrapping on the StaticText elements. The wrapping is working for other elements without using Wrap().
With this test, you ...
1
vote
0
answers
55
views
How do I get keyboard events in a dialog?
I have written a Python module to produce plots of data. The plots are generated on a dialog because I can use a modal dialog to produce a data plot, then close it to go on with the parent program. It ...
0
votes
0
answers
82
views
How to do a wxPython Slider.SetValue w/o triggering event handler
I want to programmatically set the value of a slider after the control has been
created
displayed,
and the EVT_SLIDER handler has been bound.
Is there a way to avoid triggering the handler when ...
0
votes
0
answers
62
views
Is there a way to use fuzzy selection to narrow the choices in a wx.ComboBox (wxWidgets)
I want to populate a wx.ComboBox with a large number of items but rather than having to scroll through them all, I'd like to type a string into the ComboBox and narrow the items in the ComboBox using ...
0
votes
1
answer
47
views
wxPython Slider incorrectly displays with sized panels
Creating a slider in a wxPython sized panel incorrectly displays the labels as shown here:
The following is the smallest program I could write to demonstrate the problem.
from typing import cast
...
0
votes
1
answer
53
views
How does wxpython html2 load dist index.html while keeping js css running normally?
This dist is generated by Vue
enter image description here
import os
import wx
import wx.html2
class MyBrowser(wx.Frame):
def __init__(self, *args, **kwds):
wx.Frame.__init__(self, *args, *...
0
votes
1
answer
41
views
wxPython widget position relative to another widget
I am trying to create a dynamic "predictive" listbox below a SearchCtrl widget in wxPython. The code shown below is what I would like it to look like, but the binding event of the ...
0
votes
1
answer
70
views
wx only execute on mouseover, not during GUI initialization
Basic outline of situation
In wxPython, I have a wx.lib.sized_controls.SizedFrame() as a class object which holds a wx.lib.sized_controls.SizedScrolledPanel() with SetSizerProps(expand=True, ...
0
votes
1
answer
56
views
FindString() method for wx ListBox not working for me
This is a part of the code which successfully displays the values in the dict art in a wxListBox.
However, nothing I try returns other than -1 from the last line below. Can anyone see why it doesn't ...
1
vote
2
answers
134
views
Wxpython Sizer position
I have the below sample application which has a couple of simple sizers which, for some reason, are centered vertically, which I dont want (see attachment). I want the wxchoice sizer to be position at ...
0
votes
0
answers
90
views
wxpython alpha colors overwrite previous drawing
I create a new bitmap on each frame so that everything draws on a new canvas but apparently something else is going on, each frame seems to be drawing on top of the previous, is there something I have ...
0
votes
0
answers
61
views
wx.YieldIfNeeded slows down when called in long running search in wxStyledTextCtrl doc which is scrolled down
Environment: wxPython v.4.2.2, Python 3.10
There’s editor-like GUI app: Frame->Panel->MultiSplitterWindow->Panel->STC.
I’m implementing Search function as LongRunning, simplified excerpt:
...
0
votes
2
answers
135
views
How to prevent UI freeze in wxpython when running long task with concurrent future
I want to execute a long task in a wxpython UI, without the UI losing responsiveness.
I thought using concurrent futures with a ThreadPoolExecutor would allow me to do just that, but the UI still ...
0
votes
1
answer
59
views
Is it possible to create a function to increment or decrease a variable by one, without looping or recursion(wxpython)
I have logical problem in my script.
This script is supposed to create two buttons namely, add_button and subtract_button. When the add button is clicked it will increment a variable by one and if it ...
0
votes
1
answer
87
views
How do I get arrows in a wxPython Ultimate List Control to scroll correctly?
I've got an Ultimate List Control with two columns. If I select an item and the use the arrow keys, focus changes appropriately. If I use an arrow key to select an item that is above or below the area ...