Creating a GUI
- BigJohnT
-
Topic Author
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
To reference widgets like so (like TOUCHY does):
self.builder.get_widget("hal_gremlin1").show_offsets = True
You DO need the builder as self.builder
Is there a way to see a list of the parameters of hal_gremlin1 without looking in the code?
John
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7870
- Thank you received: 2125
other wise no, you would have to look at the source.
We will need to make a separate advanced gladeVCP manual

Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7870
- Thank you received: 2125
like we do for installing comps
If you get time make a glade panel that represents a DRO widget - it doesn't have to work.
I will tinker to see if I can make it a gladeVCP widget.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7870
- Thank you received: 2125
and loading the other one from hal
in the HAL section of the INI file
add HALCMD = loadusr gaxis
this is how gscreen does it in the sample configs and works well when developing a screen when not everything works yet (you can use the other screen to do whats missing)
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7870
- Thank you received: 2125
or else use the regular one.
You could use this same idea to have your screen load the local one then you could have a different screen on each config just by having a different glade file in it.
Also makes it so you don't have to search all over for the glade file...
just another idea.
d = os.environ
localglade = os.path.join(d,"touchy.glade")
if os.path.exists(localglade):
print "\n**** TOUCHY INFO: Using local glade file from %s ****"% localglade
self.gladefile = localglade
else:
self.gladefile = os.path.join(datadir, "touchy.glade")
print"\n**** TOUCHY INFO: using glade file from: %s ****"% datadir
self.wTree = gtk.glade.XML(self.gladefile)
Please Log in or Create an account to join the conversation.
- BigJohnT
-
Topic Author
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
The DRO does it need to go into a top level window?
John
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7870
- Thank you received: 2125
but I can fix that later anyways.
Please Log in or Create an account to join the conversation.
- BigJohnT
-
Topic Author
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
John
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7870
- Thank you received: 2125
Please Log in or Create an account to join the conversation.
- BigJohnT
-
Topic Author
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
Please Log in or Create an account to join the conversation.