NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Configuring LinuxCNC GUI's Gscreen - a GTK / Glade / Python based screen

Welcome, Guest
Username: Password: Remember me

TOPIC: Gscreen - a GTK / Glade / Python based screen

Re:Gscreen - a GTK / Glade / Python based screen 23 Aug 2012 04:06 #23572

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 77
  • Thank you received: 1
  • Karma: 5
Yes thank you. I'm not sure what they did but they have managed the problem.

Now we are thinking of customization Gscreen. :laugh:

Here's the deal: they want to create cnc deck like siemens/fanuc...

First of all they want to get rid of the mouse and use hardware buttons to control gscreen. This buttons should be placed below the monitor and when you press hardware button it should act like you press the button on the screen right above hardware one. So we thought that it will be useful to get hal pins for each button-cell. (see attach)

Probably it'll be easier to get access to them if we pack them not into Vbox -> Hbox but into Notepad -> Hbox then we can get access to active row using something like
notepad -> active page -> Hbox.n-th child
And it will be great if we can export pins something like bottom-line-buttons.0, bottom-line-buttons.1 ... and left-side-buttons.0...


I'll post any news about that.
Last Edit: 23 Aug 2012 04:06 by Nick.
The administrator has disabled public write access.

Re:Gscreen - a GTK / Glade / Python based screen 23 Aug 2012 22:47 #23605

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1489
  • Thank you received: 40
  • Karma: 89
Gscreen was built with a touch screen in mind, though a mouse works.
I disable some default mouse control for the graphics display then apply new ones that work better for a touch screen.
Wouldn't a touch screen be easier then adding physical buttons?

Yes the buttons on the bottom and right were heidenhain DRO inspirations which had physical buttons below the graphical label.
It could be possible to add an option to buttons to use a HAL pin to toggle them rather then a HAL pin toggled from them.
This is similar to LED with no HAL pin option I added.
Or you could just have a HAL pin call a method to toggle the button.

Please keep in mind there are many tweaks in the Gscreen branch that are not in master (the branch it is based on).
If the tweaks prove out I will add then to master.
Also the code is messy and organic - I apologize - I'm a hacker more then a programmer. And this is an exploration of concepts.

But yes keep me informed on your work.
BTW if you add a glade file called gscreen.glade in your config folder, gscreen should load it instead of the default glade file.
Might help you try different screens without changing the default one.

Cheers Chris M
The administrator has disabled public write access.

Re:Gscreen - a GTK / Glade / Python based screen 23 Aug 2012 22:51 #23606

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1489
  • Thank you received: 40
  • Karma: 89
The notebook idea sounds interesting ....
The administrator has disabled public write access.

Re:Gscreen - a GTK / Glade / Python based screen 28 Aug 2012 10:00 #23722

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 77
  • Thank you received: 1
  • Karma: 5
As of now we've made small glade panel with notebooks that work as I've described.
Now we are thinking of the bes way to integrate it into Gscreen :)

Here are our works out: github.com/cnc-club/hw-buttons .

Almost all code comments are in Russian, hope to translate them later.
The administrator has disabled public write access.

Re:Gscreen - a GTK / Glade / Python based screen 31 Aug 2012 18:47 #23818

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1489
  • Thank you received: 40
  • Karma: 89
I looked at the glade file in GLADE editor. Looks good. (I haven't tried running it)
I'll look at your code changes later...

Chris M
The administrator has disabled public write access.

Re:Gscreen - a GTK / Glade / Python based screen 10 Sep 2012 15:28 #24139

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
I just ordered a touch screen for the BP knee mill conversion... look out gscreen!

John
The administrator has disabled public write access.
Time to create page: 1.368 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.