- Posts: 6803
- Thank you received: 0
hazzy - Another touchscreen GUI
9 years 5 days ago #100803
by cmorley
Replied by cmorley on topic hazzy - Another touchscreen GUI
It's not required to use GLADE:
All you need to do is build your widgets.
GLADE is just easier faster if you are not a programmer.
Chris M
Code:
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"
Attachment not found
All you need to do is build your widgets.
GLADE is just easier faster if you are not a programmer.
Chris M
Please Log in to join the conversation.
9 years 5 days ago #100804
by KCJ
Replied by KCJ on topic hazzy - Another touchscreen GUI
Thanks Chris! I did not know that was possible.
It does look like I am duplicating effort ...
It does look like I am duplicating effort ...
Please Log in to join the conversation.
9 years 5 days ago #100805
by cmorley
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.
Chris M
Replied by cmorley on topic hazzy - Another touchscreen GUI
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.
Chris M
Please Log in to join the conversation.
- RothMetalWorks
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
8 years 7 months ago #107204
by RothMetalWorks
Replied by RothMetalWorks on topic hazzy - Another touchscreen GUI
I see it's been a while since this post was last updated. I'm working on setting up a lathe & I really liked what I saw of this GUI. Is it still being developed? I'd really like to use it if it is usable.
Thanks!
Mike
Thanks!
Mike
Please Log in to join the conversation.
8 years 7 months ago #107205
by KCJ
Replied by KCJ on topic hazzy - Another touchscreen GUI
I do plan to continue developing hazzy, but at the moment I am concentrating on other things. It is not far from a usable state, however there are a couple of somewhat daunting issues that I need to find solutions for. Hopefully I will have the time and energy to tackle them in the not too distant future!
Stay tuned and try to ignore all the static
Stay tuned and try to ignore all the static
Please Log in to join the conversation.
8 years 7 months ago #107354
by persei8
Replied by persei8 on topic hazzy - Another touchscreen GUI
Are you still updating to GitHub? The newest updates I can find are about 8 months old and I see on youtube that you've added several other features.
Please Log in to join the conversation.
8 years 7 months ago #107355
by KCJ
Replied by KCJ on topic hazzy - Another touchscreen GUI
Yes, we are currently developing on the GTK3 branch which you can find here:
github.com/kurtjacobson/hazzy/tree/GTK3
Please Log in to join the conversation.
8 years 7 months ago #107533
by persei8
Replied by persei8 on topic hazzy - Another touchscreen GUI
Where does hazzy look for the GTK version? I installed GTK+ -3.22.0 (at least I think I did, it compiled and installed) but still get the following error:
[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.
[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.
Please Log in to join the conversation.
8 years 7 months ago #107554
by KCJ
Replied by KCJ on topic hazzy - Another touchscreen GUI
hazzy uses PyGObject to access all the GObject-based libraries (like GTK) from python. My guess would be that you have successfully installed GTK+ 3.22.0, but don't have the corresponding version GObject installed.
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.
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.
Please Log in to join the conversation.
8 years 7 months ago #107583
by persei8
Replied by persei8 on topic hazzy - Another touchscreen GUI
Thanks for the attempt to help, but I give up - and that doesn't happen often. I compiled and installed gtk+-3.22.29 as well as all dependencies, including pygobject, as listed on gtk.org and apt-cache policy libgtk-3-0 still reports using 3.18.9. This is on Linux Mint 18.3 64 bit (dual booting with Windows10). Supposedly Mint 19 should be available sometime this spring so maybe it will come native with the latest gtk+. Just as well, I should be working on a doll crib for my granddaughter.
Quick update - gtk3.0 is definitely installed because the Cinammon UI is using it.
Quick update - gtk3.0 is definitely installed because the Cinammon UI is using it.
Please Log in to join the conversation.
Time to create page: 0.151 seconds
