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

More
16 years 5 days ago #4866 by taras
Hello. Can anyone advise information or tutorial how to build your own simple g-code generator like in wiki. I know basics of programming. I need to know what tools and doc's to do it. Thanks.

Please Log in to join the conversation.

More
16 years 4 days ago #4870 by BigJohnT
Just read the programs on the wiki to see how I and others have done it. Several folks have taken one of my g-code generators and modified it to do what they wanted.

There are no manuals or tutorials that I know of for writing a g code generator.

John

Please Log in to join the conversation.

More
16 years 4 days ago #4872 by taras
Thanks. I understood. Is there much more handy editor with debug posibility, to modify .py scripts (build forms with the buttons and other controls), than gedit?

Please Log in to join the conversation.

More
16 years 4 days ago #4873 by BigJohnT
I actually prefer gedit for editing my python files. I add the plugins External Tools, Python Console and Snippets from the preferences menu. As for a RAD I prefer Code::Blocks.

John

Please Log in to join the conversation.

More
16 years 4 days ago #4886 by step4linux
taras wrote:

Thanks. I understood. Is there much more handy editor with debug posibility, to modify .py scripts (build forms with the buttons and other controls), than gedit?


For forms design with buttons and control you can use glade

Please Log in to join the conversation.

More
16 years 3 days ago #4920 by taras
I've installed Glade, but it can open only .glade files not .py
Also I have installed Eric python IDE, Boa constructor, DrPython (PIDA and Stani's editor will not start) . Tried to open drill.py (first simple genrator in list, on the wiki). And none of the editors don't showed me main frame of script to edit controls.

Please Log in to join the conversation.

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

Please Log in to join the conversation.

More
16 years 3 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 to join the conversation.

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

Please Log in to join the conversation.

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

John

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum