How to write own simple g-code generator? (.py)

More
16 years 4 days ago #4921 by taras
Code::Blocks, that I've installed, don't opens .py file.

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

More
16 years 4 days ago #4923 by step4linux
The way a glade - python toolchain works is like this:

You design your GUI in glade and create an xml file.

In py, you open the xml, and create references to your graphical objects.

google for "python glade" and you will find documentation, tutorials etc

Gerd

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

More
16 years 4 days ago #4924 by taras
Thank for the pivot!

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

More
16 years 4 days ago #4931 by BigJohnT
I use code::blocks for my c++ programs and gedit for python.

John

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

More
16 years 4 days ago #4941 by taras
These simple g-code generators were written using tkinter GUI package. The way that you described (glade->xml, and use this xml from .py) don't uses tkinter, and when I've tried to launch .py (that uses .xml) from EMC I get and error related to the .xml file (error opening or can't find). I've found visual tcl, but this environment works with .tcl not .py files. Any suggestions?
Or am I just complicates the problem? Maybe not so hard to build tcl tk interface using just gedit?

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

More
16 years 4 days ago #4945 by step4linux
Infact for simple cases the usage of a graphical design tool might be an overkill.

Tkinter is something like the native GUI of py.
Its simple and fast to use, you need only a texteditor like gedit.
Just to place some buttons on a form its good enough anyway.

Gerd

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

Time to create page: 0.283 seconds
Powered by Kunena Forum