I am trying to pass a WX frame class to another class. I have three py files which are as follows: gui_20220510.py – this contains the gui code demo.py – This contains the run functions to import the wx frame Main.py – This is the main file to run the program When trying to run main.py, I am getting “Frame_Demo”
Tag: wxpython
Installing wxPython on Windows: DistutilsPlatformError: Microsoft Visual C++ 14.2 or greater is required
I have installed: Python 3.10.1 PyCharm Community 2021.3 Visual Studio Build Tools 2022, including: C++ Build Tools Core Features C++ 2022 Redistributable Update C++ core desktop features MSVC v143 – VS 2022 C++ x64/x86 build tools (Latest) Windows 10 SDK (10.0.19041.0) C++ CMake tools for Windows Testing tools core features – Build Tools C++ AddressSanitizer C++/CLI support for v143 build
How to change wx.sbSizer label color and size in python?
I’m creating a GUI and I’m using several wx.sbSizer to group the widgets. However I need to change the font and the color of the wx.sbSizer Label (‘MyApp’) and although I have searched I cannot find out how to do it. Here’s a minimal working example: Thank you in adavnce for any help. Answer You are already using sbSizer1_2_1.GetStaticBox() to
How do i resize a widget in WxPython using GridSizer
Introduction and Issue I’ve made a gridsizer to resize my frame itself. But because of the gridsizer if I use WX_EXPAND flag (to let them have a new height and width when I use self.Layout() to refresh when the app is resized) they don’t resize the % of the screen I gave them (I put blank widget to put all
Show wx.MenuItems’s Help String in a determined wx.StatusBar’s Field
Premise: I’m creating a little wx.Frame with a wx.StatusBar with 3 Fields, the one on the left and the one on the right smaller and the one on the center bigger. Now, By Default, when i put the mouse on a wx.MenuItem the wx.StatusBar set as Status Text the wx.MenuItem’s Help String in the FIRST wx.StatusBar’s Field like in the
How do I make menu options do different things in WxPython?
I have a problem with my menu in WxPython! In the file header I have ‘File’ and in that I have 2 options, ‘Save’ and ‘Close’…When I click save, I want it to print “Saved” and when I clock quit, the application should print “Closed” and close…But if I click even save it’s closing! So can you please help me.
Problem of “Memory limit exceeded” and “Time limit exceeded” in Python
I have a problem to solve on the online judge. Its solution is to make the sum of the integer for example input 4, so 1+2+3+4 the output 10. For another example, the input is 10, so get sum of 1 to 10 to get in the output 55 and so on. But when I used a list to store
Python- Saving/Accessing file extension icons and using them in a Tkinter program
I’m currently trying to figure out how to create some code which will take the input of a file extension like ‘.png’ and return the icon associated with that filetype on the system. I’m using python 2.7.6 and using Windows 8. I’ve been looking for code for this for hours to things close to it by saving images from .exe
change the colorbar width
I have created this, as you can see the colorbar is very thin, is there anyway of increasing the width of the colorbar without increasing the height Answer You need to get hold of the axes of the colorbar. Assuming you hold a reference to the colorbar in cbar you get to the axes via cbar.ax. You can control the