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

More
26 Oct 2010 08:36 #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 or Create an account to join the conversation.

More
26 Oct 2010 11:51 #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 or Create an account to join the conversation.

More
26 Oct 2010 12:21 - 26 Oct 2010 12:22 #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?
Last edit: 26 Oct 2010 12:22 by taras.

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

More
26 Oct 2010 12:35 #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 or Create an account to join the conversation.

More
26 Oct 2010 20:53 #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 or Create an account to join the conversation.

More
28 Oct 2010 07:54 #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 or Create an account to join the conversation.

More
28 Oct 2010 07:55 #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
28 Oct 2010 08:10 #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
28 Oct 2010 08:25 #4924 by taras
Thank for the pivot!

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

More
28 Oct 2010 13:53 #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.

Time to create page: 0.350 seconds
Powered by Kunena Forum