hazzy - Another touchscreen GUI
import gtk from gladevcp import HAL_DRO window = gtk.Dialog("My dialog", None, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk.STOCK_OK, gtk.RESPONSE_ACCEPT)) for num,axis in enumerate('xyz'): dro = HAL_DRO() dro.set_property("joint_number", num) window.vbox.pack_start(dro, False, False, 2) window.connect("destroy", gtk.main_quit) window.show_all() response = window.run() if response == gtk.RESPONSE_ACCEPT: print "ok" else: print "cancel"
All you need to do is build your widgets.
GLADE is just easier faster if you are not a programmer.
kcj wrote: I really appreciate the work that has gone into Gscreen (and its derivatives like Gmoccapy), but my feeling is that it is more of a set of building blocks that a developer can use to build a new screen, rather than a complete interface that can be quickly and easily customized and configured by the typical LinuxCNC user.
Actually Gmoccapy was a skin for Gscreen in the beginning.
Gscreen is not a screen as per say, it's an infrostructure. Screens are skins that Gscreen displays.
It is possible to build a basic functional screen with just GLADEVCP widgets. see the docs for an example.
You can add python code to it to do custom things and all of the built in examples do use python code.
By adding more custom widgets to gladevcp, one could build a much more sophisticated screen with just widgets.
gladeVCP was not built with using it without GLADE in mind, so it's not optimized for that but that is just code to be added.
It just seems so wasteful of effort and talent to build another screen mechanism - many people have spent a lots of time on gladevcp and gscreen to do mostly what you want! Just build your custom widgets and help with the gtk3 conversion would be miles ahead.
Stay tuned and try to ignore all the static
[HAZZY.MAIN][CRITICAL] GTK+ is version 3.18.9 but hazzy requires GTK+ 3.20 or above (main.py:82)
Is there some independent way to get the GTK version?
I attached the log file. Thanks.
You should be able to check the output of `$ apt-cache policy libgtk-3-0` to verify the version of GTK+ you have installed.
I am not sure what the best why to install PyGObject is. You can probably install it from source from here: www.gtk.org/download/linux.php
TurBoss mentioned that PyGObject can now be installed via pip, but I have not tried that. Probably best to use a virtual environment if you give that a go. It also might be worth trying `$ apt-get install python-gi-dev --dry-run` and see what it looks like it would install.
What OS are you using? I might install it on a test machine and see what it takes to get GTK 3.22 installed and hazzy to run.
Sorry I can't provide any better help, I am still new to all things Linux.
Quick update - gtk3.0 is definitely installed because the Cinammon UI is using it.