Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 666
milia Avatar asked Dec 14 '25 13:12

milia


1 Answers

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.

like image 143
earl_110 Avatar answered Dec 17 '25 10:12

earl_110



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!