Skip to content
Advertisement

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 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.

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

Advertisement