Creating a GUI

More
04 Aug 2012 21:19 - 04 Aug 2012 21:21 #22811 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
YIPPIEEE! It works...

Thanks Chris



John
Attachments:
Last edit: 04 Aug 2012 21:21 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 21:21 #22812 by cmorley
Replied by cmorley on topic Re:Creating a GUI
:) glad I could help. You are making a tutorial page ?

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 21:24 #22813 by cmorley
Replied by cmorley on topic Re:Creating a GUI
hmm if one was to build a DRO widget what would options would we like on it?

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 21:24 #22814 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
Yes it's just started here .

I'm stoked right now!

John

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 21:35 #22815 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
cmorley wrote:

hmm if one was to build a DRO widget what would options would we like on it?


hmm if it was slim and long in addition to the axis positions, tool information, current coordinate system, offsets for current coordinate system and G92 to name a few off the top of my head. I really like the back plot to be clean...

Thanks
John

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 21:51 - 04 Aug 2012 21:51 #22816 by cmorley
Replied by cmorley on topic Re:Creating a GUI
Might I suggest calling the main window window1 (the default name) rather then ugly camelcase MainWindow :)

Then if a noobie forgets to name the window the panel will still load. It's one of those things easy to miss but hard to find (when you don't know any better !

John I just love your tutorials !
Your work here will help push us to more users - its the kinda doc work we really need.

Chris
Last edit: 04 Aug 2012 21:51 by cmorley.

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 21:55 #22817 by cmorley
Replied by cmorley on topic Re:Creating a GUI
yes I like the clean back plot too. In Gscreen the DRO, including offsets can be turned on and off.
If you are using the gscreen branch you could too.
to see the extra options in the glade editor remember to run the glade editor from a terminal after issuing thr RIP script.

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 22:02 #22818 by cmorley
Replied by cmorley on topic Re:Creating a GUI
oh I never exposed show offsets to the glade editor you must issue
gremlin.show_offsets = True
then you'll see the current offsets.

your command will be slightly different based on how you reference gremlin and what you called it.
and of course this is only possible on the gscreen branch

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 22:05 #22819 by cmorley
Replied by cmorley on topic Re:Creating a GUI
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

Please Log in or Create an account to join the conversation.

More
04 Aug 2012 22:06 #22820 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
cmorley wrote:

Might I suggest calling the main window window1 (the default name) rather then ugly camelcase MainWindow :)

Then if a noobie forgets to name the window the panel will still load. It's one of those things easy to miss but hard to find (when you don't know any better !

John I just love your tutorials !
Your work here will help push us to more users - its the kinda doc work we really need.

Chris


That's a good idea. I'll change it now before I forget.

Thanks
John

Please Log in or Create an account to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum