JT's custom GUI tutorial

More
26 Sep 2014 21:30 - 26 Sep 2014 21:31 #51596 by mariusl
I am busy working through JT's excellent Glade and python tutorial. It is found here
I got everythng to work but at part 6d I got an error that I dont know what to do about.

The code loads halshow via a menu action and the ini file is supposed to be displayed.
Like this
def on_menu_halshow_activate(self, widget, data=None):
    print "Menu Hal Show"
    subprocess.Popen([self.tcl_dir + "halshow.tcl", "-- -ini " + self.ini_file])

I get this error
Menu Hal Show

Cannot read file <-- -ini /home/marius/linuxcnc/configs/gui6/gui6.ini>

Usage:
  halshow.tcl [Options] [watchfile]
  Options:
           --help  (this help)

Notes:
       Create watchfile in halshow using: 'File/Save Watch List'
       linuxcnc must be running for standalone usage

Any suggestions please.

Regards
Marius


www.bluearccnc.com

Last edit: 26 Sep 2014 21:31 by mariusl.

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

More
26 Sep 2014 23:01 #51597 by mariusl
Replied by mariusl on topic JT's custom GUI tutorial
I see that I had to remove the ini file stuff from the halshow call :blush:

Regards
Marius


www.bluearccnc.com

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

More
26 Sep 2014 23:43 #51599 by BigJohnT
Replied by BigJohnT on topic JT's custom GUI tutorial
I'm glad you got that sorted out.

JT

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

More
26 Sep 2014 23:56 #51600 by mariusl
Replied by mariusl on topic JT's custom GUI tutorial
Hi John
Great tutorial man. I got a customer to do the tutorial so I decided to do it myself as well. I must say I learnt a lot of stuff. I am busy compiling the gui8 repo now so I will be finishing the tutorial later tonight.

Regards
Marius


www.bluearccnc.com

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

Time to create page: 0.361 seconds
Powered by Kunena Forum