Questions tagged [wxpython]

is a GUI toolkit for the Python programming language

wxPython allows Python programmers to create programs with a robust, highly functional graphical user interface, simply and easily. It is implemented as a Python extension module (native code) that wraps the popular wxWidgets cross platform GUI library, which is written in C++.

Like Python and wxWidgets, wxPython is Open Source which means that it is free for anyone to use and the source code is available for anyone to look at and modify. Or anyone can contribute fixes or enhancements to the project.

wxPython is a cross-platform toolkit. This means that the same program will run on multiple platforms without modification. Currently supported platforms are 32-bit Microsoft Windows, most Unix or unix-like systems, and Macintosh OS X.

Source: Homepage | Wikipedia

20 questions
10
votes
3 answers

How to install wxpython ubuntu 16.04

I have a problem with playonlinx, and it requires me to install wxpython, but I have it already installed. I've used different methods, but every-time I do import wx, it gives me this error: Traceback (most recent call last): File "", line…
Diogo Figueira
  • 327
  • 1
  • 6
  • 16
8
votes
3 answers

How to enable mnemonics in 12.04 and/or 14.04 GTK3?

Word on the street is that "gtk-enable-mnemonics" has been deprecated since version 3.10, and I am not at all sure how to get my application to display mnemonics. They will only display if I press the alt key. Please see here: wxPython Button…
jmunsch
  • 2,183
  • 1
  • 21
  • 29
7
votes
4 answers

How to install wxpython 4 ubuntu 18.04

I am trying to install the wxPython 4 on my Ubuntu 18.04 machine. sudo pip install wxpython I get this warning first The directory '/home/user/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been…
Valentyn
  • 339
  • 2
  • 6
  • 13
3
votes
1 answer

Something wicked happened resolving 'apt.wxwidgets.org:http' (-5 - No address associated with hostname)

When running sudo apt-get update I get several errors like this: W: Failed to fetch http://apt.wxwidgets.org/dists/lucid-wx/Release.gpg Something wicked happened resolving 'apt.wxwidgets.org:http' (-5 - No address associated with hostname) It seems…
Tor Klingberg
  • 377
  • 2
  • 4
  • 12
3
votes
1 answer

wxpython not installing

I am installing wxPython in ubuntu-22.04 but after download It has not installing it give me an error you can see... >>>Installing collected packages: wxPython Running setup.py install for wxPython ... error error: subprocess-exited-with-error …
Alex
  • 31
  • 1
  • 2
3
votes
2 answers

PlayOnLinux not working with on wxPython 4.1.0 - ImportError: No Module named wxversion, needs to be wx.version instead

The latest version of wxPython doesn't support the wxversion module. Instead the information is available as wx.version. Is there any suggested work around to this? Thanks! My environment is Ubuntu 20.04 LTS, pyenv, python 3.8.3, python 2.7.18, …
Richard Logwood
  • 191
  • 1
  • 9
2
votes
3 answers

How to import wx on Ubuntu 16.04

I have tried installing it using apt-get: sudo apt-get install python-wxgtk3.0 But still when I run a py script with import wx it throws an error 'no module named wx' on Python 2.x and Python 3.x I also tried installing it using pip: pip install…
Rohan Raj
  • 21
  • 1
  • 3
2
votes
0 answers

Python is installed , but apt-get still gives dependency errors

I am using an Ubuntu 16.04 machine. As far as I know, I have the newest versions of Python 2 and 3 correctly installed: $ python --version Python 2.7.13 $ python2 --version Python 2.7.13 $ python3 --version Python 3.6.2 However, when I try…
Sanha Cheong
  • 321
  • 1
  • 3
  • 6
1
vote
0 answers

How to install wxpython for virtualenv

I am on 14.04. The system python version is 2.7.6. I am testing a software meant for python 2.7.9. So I have a virtualenv running python 2.7.9. Running this pip install wxpython doesn't work. So I followed these steps here: Installing wxPython and…
goelakash
  • 357
  • 2
  • 6
  • 19
1
vote
1 answer

Playonlinux asks to install Python

just few days ago I installed other version of Python on Ubuntu (I need it for coding). Installation of Python went pretty much smoothly, but when I try to launch League Of Legends I get a problem. I've tried to google this problem, but didn't find…
pyhazard
  • 11
  • 1
  • 2
1
vote
0 answers

ImportError: /lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined symbol: g_module_open_full

I am trying to run PlayOnLinux and it is not starting, while running the same from terminal it is showing the following error, File "/usr/share/playonlinux/python/check_python.py", line 3, in import wx File…
sohel shaikh
  • 21
  • 1
  • 4
1
vote
1 answer

How to download stable version of wxPython?

How to download the stable version of wxPython for Ubuntu 16.04 and Python 2.7 version?
Dinesh
  • 119
  • 1
  • 11
0
votes
0 answers

Retrieve theme colours progammatically

I am writing a Python application and I want to get the colour of the panel (window) that contains the gui. This is theme dependent. Is it possible to retrieve theme colours programmatically? I've tried: import wx class MainFrame(wx.Frame): def…
Psionman
  • 175
  • 1
  • 12
0
votes
1 answer

Error while installing Trelby on Ubuntu 16.10

I'm trying to install Trelby on my Ubuntu 16.10, but I'm getting a dependency error for Python. How do i get past this error?
0
votes
1 answer

Installing wxPython and 'getting gpg: no valid OpenPGP data found' error

I am trying to install Pylot on my computer and am using the instructions from Pylots website. Their site asks you to install wxPython. When I try to from their provided resource I am getting thrown an error. Here is Pylot's getting started guide:…
Erik Åsland
  • 115
  • 8
1
2