Gscreen - a GTK / Glade / Python based screen

More
14 years 2 months ago #22702 by cmorley
Gscreen does both at the moment ( not a dic but connecting explicitly in the program).
The problem I found annoying when using glade to connect signals is if you cut and paste in the editor it didn't copy the signal name.
It is easy to miss and takes a while to figure out why the method is not being called.

I would think adding a zoom feature gremlin that centres on g92 x0 y0 z0 would be possible if I understand you properly.
Though that doesn't fix AXIS....

What do you consider a minimum feature list for a screen is?
Making one specifically for plasma is interesting though I don't know the specifics of what that requires.

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

More
14 years 2 months ago - 14 years 2 months ago #22714 by BigJohnT
I think the bare minimum needed is a menu, a button bar, a MDI tab, a DRO tab, a backplot tab, and a tab with the loaded file in it. and a status tab.

Menu File > Open, Quit
Button bar E-Stop, Power

Just looking at gscreen.py and I see you took a different approach that cradek did with touchy. Is there any reason to use GladeVCP in a GUI?

I was going to do a screen capture but I'm having a bit of a problem with GtkSourceView missing something or other... I don't see where you are importing gtksourceview so it must be some other magic. I did find that adding import gtksourceview2 seemed to solve the problem...

John
Last edit: 14 years 2 months ago by BigJohnT.

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

More
14 years 2 months ago #22750 by cmorley
are you importing gladevcp ?

I use gladevcp widgets for a gui because that's what there are there for :)
seriously if the widget does what I want why would I not use it?
Also since the idea is that a user may change the glade file I would not want to limit then to non gladevcp widgets only.
often you can leverage more options out of gladevcp objects by calling their methods in your program.
In Gscreen some widgets I have changed the source code of to help in this matter (particularly gremlin).
When I merge Gscreen into master those options will be available to everyone.

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

More
14 years 2 months ago - 14 years 2 months ago #23333 by Nick
Hi

Some of cnc-club members have have tried gscreen from mentioned here git repository ( git.mah.priv.at/gitweb/emc2-dev.git )
But unfortunately they were unable to launch linuxcnc having this error messages:

What can cause them? Are there any fix?

Thanks in advance :) image missing http://linuxcnc.org/media/kunena/attachments/legacy/images/________________________1_012_1.png
Last edit: 14 years 2 months ago by Nick.

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

More
14 years 2 months ago - 14 years 2 months ago #23334 by cncbasher
no 100% sure , but in your home directory you should have a .gscreen_preferences hidden file
Last edit: 14 years 2 months ago by cncbasher.

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

More
14 years 2 months ago #23372 by Nick
They have such file with following content:
Code:
[DEFAULT] window_force_max = True window2_force_max = False error_font = Sans Bold 10 err_textcolor = default dtg_textcolor = default hide_cursor = False window_geometry = default use_screen2 = True gtk_theme = Blue-Joy window2_geometry = default abs_textcolor = default rel_textcolor = default

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

Time to create page: 0.556 seconds
Powered by Kunena Forum