- Posts: 6803
- Thank you received: 0
Gscreen - a GTK / Glade / Python based screen
Attachment not found
Here is Industrial with an embedded 'Onboard' keyboard.
This is permanently at the side on the screen not a separate window.
This is just a test - but what ya think?
I think the keyboard layout needs to be optimized though...
Chris M
Please Log in to join the conversation.
I agree, the layout must be "refurnished",
I miss:
(
)
[
]
#
<
>
;
Norbert
This is my layout:
Attachment not found
Please Log in to join the conversation.
Onboard supports custom layouts so it comes down to someone writing one.
I was just happy figuring out how to embed Onboard in the first place - needed holp from the Onboard project to guide me.
Chris M
Please Log in to join the conversation.
feel free to get code of mine.
Norbert
Please Log in to join the conversation.
cmorley wrote:
Attachment not found
Here is Industrial with an embedded 'Onboard' keyboard.
This is permanently at the side on the screen not a separate window.
This is just a test - but what ya think?
I think the keyboard layout needs to be optimized though...
Chris M
Have you tried adding more rows and having less per row to get a squareish key?
John
Please Log in to join the conversation.
One thing I noticed late yesterday, I was noticing that when I was typing in an mdi command, the letters/numbers were lagging behind a little half a second maybe before they appeared in the actual box. I noticed that the 2nd small screen with the speed meter was behind the main screen, so I turned it off in preferences and the lag disappeared. Peculiar........
I have been pondering for a while, how to get a user defined fault displayed somewhere on our builds. Now with gscreen, you have them displaying in the top left hand field. How is that handled, and how do you think you could take an external hal input and have it trigger an alarm in that display?? Its something I would like to try to tackle if its even feasible. I started a thread "External Fault" in advanced configuration last year, but I wasn't anywhere near where I am at with programming as I am now. Now I now just enough to be dangerous!!! Ha ha ha
Thanks
Rick
Please Log in to join the conversation.
newbynobi wrote: Hallo Chris,
feel free to get code of mine.
Norbert
What I am doing is embedding Onboard ( launchpad.net/onboard ) into Gscreen.
opposed to launching Onboard separately.
I'm not interested in building a keyboard program as Norbert has done.
In this way a user could build what ever type of keyboard he likes and I don't have to maintain code.
I will play with the layout a bit.
Chris M
Please Log in to join the conversation.
LAIR82 wrote: Hi Chris, so far so good with our build, we are going to start cutting chips tomorrow, can't wait!!! I will let you know how things go after some cycle time.
One thing I noticed late yesterday, I was noticing that when I was typing in an mdi command, the letters/numbers were lagging behind a little half a second maybe before they appeared in the actual box. I noticed that the 2nd small screen with the speed meter was behind the main screen, so I turned it off in preferences and the lag disappeared. Peculiar........
I have been pondering for a while, how to get a user defined fault displayed somewhere on our builds. Now with gscreen, you have them displaying in the top left hand field. How is that handled, and how do you think you could take an external hal input and have it trigger an alarm in that display?? Its something I would like to try to tackle if its even feasible. I started a thread "External Fault" in advanced configuration last year, but I wasn't anywhere near where I am at with programming as I am now. Now I now just enough to be dangerous!!! Ha ha ha
Thanks
Rick
Gscreen is a userspace program so is at the mercy of the realtime kerel.
Gscreen is of course a python program so is a little slow and it's many layers deep.
There are a few settings that can help.
There is the update rate of gscreen. too fast uses up CPU time, too slow makes Gscreen unresponsive.
This is set in the INI under [DISPLAY] CYCLE_TIME = 100
There is the base/servo period of linuxcnc - a larger number leaves more time for user space programs.
The display card/driver may have an effect too.
Gscreen has a built in mechanism for HAL pin controlled messages.
There are status bar messages, ok dialog or yes no dialog messages.
The status bar messages can be combined with the dialog messages and they also pop a message notification bubble.
These samples are included in the default Gscreen config in the sim folder.
in the debug terminal try these commands:
halcmd setp gscreen.statustest 1
halcmd setp gscreen.yndialogtest 1
halcmd setp gscreen.bothtest 1
You can set the type and message test in the INI file.
You can add HAL logic to control stuff depending on the answer of say the yes no dialog.
You could also you a hadler file and extend Gscreen to do what ever you want message / dialog wise.
look here:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Gscreen#user_message_dialogs
Hope that helps.
Chris M
Please Log in to join the conversation.
Attachment not found
adding an image makes the keyboard more square ... Stuart might like this
Chris M
Please Log in to join the conversation.
Is this something we should have for Gscreen?
What would we want a keyboard binding for - everything?
I would need to make it extendible in a handler file which is fine.
Maybe I should try to follow AXIS's bindings if I can.
Or maybe Gscreen is fine with touchscreen and mouse....
Chris M
Please Log in to join the conversation.
