Is it possible to use win32gui/pywin32 on Ubuntu Linux?

milia picture milia · Feb 1, 2015 · Viewed 7.6k times · Source

I have a certain software written for Windows invironment and I'm trying to port it in Linux. It is heavily based on pywin32 (among other two python GUI libraries like Tkinter and wxPython) and depends on win32gui.

I don't have pywin32 installed on my Ubuntu 12.04.5 LTS system, so I've downloaded the source and tried to build it, writing:

python setup.py

Consequently, I got:

Traceback (most recent call last):
  File "setup.py", line 82, in <module>
    import _winreg
ImportError: No module named _winreg

But from what I've read here for winreg, this library is Windows only.

Does this mean that I can't use win32gui/pywin32 on Linux?

If so, could you suggest some way around it if possible or an alternative python gui for Linux? I already have in mind Tkinter and wxPython, but I'm not sure which is best for my case though.

Thanks

Answer

earl_110 picture earl_110 · Apr 24, 2015

I suggest using one of the two instead of trying to find a way to solve that. I used Tkinter in Python GUI but it's just my personal preference.