Python Gtk NGCGUI
Just some random thoughts...
Perhaps two different Glade screens one for touch screens and one for mouse users. Possibly sharing the same code base. The touch screen version should have a popup keypad for each entry box.
A base widget that would load the subroutines at run time listed in the ini file.
Have the option of having a preamble and postamble files.
Be able to concatenate the subs together to form a whole file.
Probably missing a lot at this point but thinking out loud. I'm almost comfortable enough with Python and Gtk to pull this off
John
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The first problem is that by building it with the GLADE editor we had to add it to a top window.
A top window can not be put into anything else so we must re-parent the custom widget.
I don't have a clue what re-parent means...
I'm guessing the key to this is to be able to "send" the file to LinuxCNC and the rest would be somewhat straightforward.
John
Please Log in or Create an account to join the conversation.
The reparent() method moves a widget from one gtk.Container to another
Please Log in or Create an account to join the conversation.
window.reparent(self)
John
Please Log in or Create an account to join the conversation.
Now to try and figure out how to add it to a gui and send the result of the keyboard back to the entry widget. Any and all hints are appreciated.
John
Please Log in or Create an account to join the conversation.
have the entry boxes signal 'enter-notify-event' call a callback function that show this dialog.
The callback function automatically is sent the widget object (the entry widget) as the first argument.
When the keyboard function is done have it fill this entry widget with the data.
You may wish to use a different signal as the one I quoted will fire when ever the cursor goes over over the widget.
You may wish it to be over and click or have different behaviour depending if you have a touch screen or not.
Chris M
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
a dialog is just convenient sometimes.
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.