Touch Screen GUI
John
Please Log in or Create an account to join the conversation.
Sliders should be for percent of entered values from 0%-200%
What is touch off sugest renaming
Auto Mode: Sugest renaming to Run Mode
The display screen is not liked or used should be added under a graphics tab
Need program lines
Subroutine: Not used
Just some comments from around the shop
Always use CAPS it is eaiser to reed and recoginze letters.
Please Log in or Create an account to join the conversation.
Tell the guys thanks for looking at it and I appreciate the comments.
John
Please Log in or Create an account to join the conversation.
I run mostly unique parts on my CHNC lathe and use ngcgui subroutines for 99.9% of the ops. I have to assume in a production shop someone is programming each part with a CAM program and that is what the operators use and they might make small changes to the part to meet a spec.
The logical thing to me is to be able to take Glade and build the GUI to fit the task/skills/environment and have the underlying code the same. This would enable a person with little programming skills to create the GUI that fits them perfectly.
John
Please Log in or Create an account to join the conversation.
When I use self.builder.connect_signals(self) is it possible to have the def in a module file instead of the main file?
John
Please Log in or Create an account to join the conversation.
I have come to the conclusion that there is no one GUI that fits the bill for everyone. While the underlying code might work for 98% the GUI needs are vastly different.
Yep, but what group of people ever agree on anything complex and the ability to easily customize the GUI is a great idea.
Rick G
Please Log in or Create an account to join the conversation.
Ok back to our program...
When I use self.builder.connect_signals(self) is it possible to have the def in a module file instead of the main file?
John
From what I have seen of python, a function (def) needs to be defined in its entirety before it is called.
Unless this def is actually part of a class in the main file, you should be able to define it in a separate module file and include it with
from modulename import functionname
(module would then need to be in the python path, /usr/lib/python2.6/ or whatever)
C++ and well structured C, use header files for forward definition and then everything slots together later, without requiring the function be spelled out before it is referenced.
But that is possible because it is compiled and linked in separate stages and initially a function call only needs to fit a definition template regards parameters and return type etc
regards
Please Log in or Create an account to join the conversation.
I have to assume in a production shop someone is programming each part with a CAM program and that is what the operators use and they might make small changes to the part to meet a spec.
Mostly correct, in our shop the parts are programed. Not all of the fixtures are and that is where the macihinest will write a program for a fixture.
Please Log in or Create an account to join the conversation.
but its a complicated way to do it.
You can also pass a Dic to connect_signals and if you do you can add to that Dic from another file or module.
The one thing to remember about connect_signals is you can only call it once when using GTK builder files.
What are you trying to do?
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.