gcewing / pygui Goto Github PK
View Code? Open in Web Editor NEWA cross-platform GUI library for Python with a pythonic API.
License: MIT License
A cross-platform GUI library for Python with a pythonic API.
License: MIT License
I am unable to use PIP to install PyGui. Can you please add it into Pypi's index, so that it can be installed, and kept up to date?
Thanks.
I tried it in my Mint 19/Cinnamon environment. I'm not sure if PyGUI is supposed to work with GTK 3 or 2, so I tried installing both, although maybe I messed something up.
$ sudo apt install libgtk-3-dev python-gtk2
$ cd $git
$ git clone https://github.com/gcewing/PyGUI.git
$ cp -a PyGUI/Demos/BlobEdit $my_projects
$ cd $my_projects/BlobEdit
$ python3 -m venv venv
$ . venv/bin/activate
$ pushd $git/PyGUI
$ python setup.py install
[lots of output; nothing scary-looking; exit status 0]
$ popd
$ python blobedit.py
Traceback (most recent call last):
File "blobedit.py", line 16, in <module>
from GUI import Application, ScrollableView, Document, Window, Cursor, rgb
File "$my_projects/BlobEdit/venv/lib/python3.6/site-packages/GUI/__init__.py", line 54, in <module>
raise ImportError("Unable to find an implementation of PyGUI for this installation")
ImportError: Unable to find an implementation of PyGUI for this installation
I eventually got past that exception, like this:
$ pip install vext
$ pip install vext.gi
$ pip install PyGObjectg
But then I got stuck with:
$my_projects/BlobEdit/venv/lib/python3.6/site-packages/GUI/__init__.py:49: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
__import__(_testmod)
Traceback (most recent call last):
File "blobedit.py", line 16, in <module>
from GUI import Application, ScrollableView, Document, Window, Cursor, rgb
File "$my_projects/BlobEdit/venv/lib/python3.6/site-packages/GUI/__init__.py", line 74, in <module>
from GUI.Colors import rgb
File "$my_projects/BlobEdit/venv/lib/python3.6/site-packages/GUI/Colors.py", line 5, in <module>
from gtk import Style
ImportError: cannot import name 'Style'
I tried it in a new venv with --system-site-packages
, but this didn't help. And of course, I don't want to run PyGUI's setup.py without a venv.
Advice would be appreciated, and I suggest you add solutions for problems like this in README.md, especially until #1 is resolved.
There have been no commits for over 2 years. Are there any plans to keep maintaining this project? It seems to be the most Pythonic cross-platform GUI API I've come across so far, but there's still a lot of work to do. It would be nice if more developers came to the party—cross-platform GUIs are a big animal to tame.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.