7,243 questions
0
votes
1
answer
70
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 ...
0
votes
1
answer
51
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 ...
0
votes
1
answer
77
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
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
vote
2
answers
79
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
1
answer
64
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
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 ...
1
vote
1
answer
87
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
51
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 ...
0
votes
2
answers
46
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
47
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....
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
163
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
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
...
-1
votes
1
answer
52
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:
...
1
vote
0
answers
72
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
158
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
84
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 ...
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
61
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
52
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
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, ...
1
vote
2
answers
133
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
56
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
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 ...