[Home]History of Gscreen

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Revision 81 . . (edit) April 24, 2013 4:21 am by Cmorley
Revision 80 . . (edit) January 28, 2013 8:17 am by Cmorley
Revision 79 . . (edit) January 28, 2013 8:14 am by Cmorley
Revision 78 . . (edit) January 28, 2013 8:05 am by Cmorley
Revision 77 . . January 27, 2013 8:32 pm by Cmorley [add more INI info for Gscreen]
Revision 76 . . January 6, 2013 10:53 pm by Cmorley [update HAL pins ]
Revision 75 . . (edit) December 20, 2012 7:27 am by Cmorley
Revision 74 . . (edit) December 14, 2012 4:46 am by Cmorley
Revision 73 . . December 14, 2012 2:04 am by Cmorley [update about how many supported axes]
Revision 72 . . (edit) December 9, 2012 10:55 pm by Cmorley
Revision 71 . . (edit) December 9, 2012 6:44 pm by Cmorley
Revision 70 . . December 9, 2012 6:41 pm by Cmorley [update handler files function calls]
Revision 69 . . (edit) December 7, 2012 9:17 am by Cmorley [add a image-based custom screen shot]
Revision 68 . . (edit) December 7, 2012 9:16 am by Cmorley [add a image-based custom screen shot]
Revision 67 . . December 7, 2012 9:15 am by Cmorley [add a image-based custom screen shot]
Revision 66 . . (edit) December 4, 2012 9:38 am by Cmorley [document handler file special functions]
Revision 65 . . December 4, 2012 9:27 am by Cmorley [document handler file special functions]
Revision 64 . . (edit) December 4, 2012 9:16 am by Cmorley
Revision 63 . . (edit) December 4, 2012 9:16 am by Cmorley
Revision 62 . . (edit) December 4, 2012 9:01 am by Cmorley
Revision 61 . . (edit) December 4, 2012 8:59 am by Cmorley
Revision 60 . . (edit) December 4, 2012 6:18 am by Cmorley
Revision 59 . . (edit) December 4, 2012 6:18 am by Cmorley
Revision 58 . . (edit) December 4, 2012 6:17 am by Cmorley
Revision 57 . . (edit) December 4, 2012 6:11 am by Cmorley
Revision 56 . . (edit) December 3, 2012 10:12 pm by Cmorley
Revision 55 . . (edit) December 3, 2012 10:06 pm by Cmorley
Revision 54 . . (edit) December 3, 2012 10:02 pm by Cmorley
Revision 53 . . December 3, 2012 9:57 pm by Cmorley [Add some installation instructions]
Revision 52 . . (edit) December 3, 2012 9:20 pm by Cmorley
Revision 51 . . (edit) November 27, 2012 5:46 am by Cmorley
Revision 50 . . (edit) November 27, 2012 5:45 am by Cmorley
Revision 49 . . (edit) November 27, 2012 5:43 am by Cmorley
Revision 48 . . (edit) November 27, 2012 5:42 am by Cmorley
Revision 47 . . November 26, 2012 8:57 am by Cmorley [fix message dialog pic]
Revision 46 . . (edit) November 18, 2012 4:04 am by Cmorley
Revision 45 . . (edit) November 18, 2012 4:03 am by Cmorley
Revision 44 . . (edit) November 18, 2012 3:58 am by Cmorley
Revision 43 . . (edit) November 18, 2012 3:58 am by Cmorley
Revision 42 . . (edit) November 18, 2012 3:58 am by Cmorley
Revision 41 . . (edit) November 18, 2012 3:55 am by Cmorley
Revision 40 . . (edit) November 10, 2012 7:03 am by Cmorley
Revision 39 . . (edit) November 9, 2012 6:07 am by Cmorley
Revision 38 . . (edit) November 6, 2012 8:43 am by Cmorley
Revision 37 . . (edit) November 6, 2012 8:35 am by Cmorley
Revision 36 . . (edit) November 6, 2012 8:29 am by Cmorley
Revision 35 . . (edit) November 6, 2012 8:23 am by Cmorley
Revision 34 . . November 6, 2012 8:16 am by Cmorley [add more gscreen docs]
Revision 33 . . (edit) November 6, 2012 7:46 am by Cmorley
Revision 32 . . (edit) November 6, 2012 7:40 am by Cmorley
Revision 31 . . (edit) November 6, 2012 7:25 am by Cmorley
Revision 30 . . (edit) November 6, 2012 7:20 am by Cmorley
Revision 29 . . (edit) August 3, 2012 6:10 am by Cmorley
Revision 28 . . (edit) August 3, 2012 6:00 am by Cmorley
Revision 27 . . (edit) August 2, 2012 4:53 am by Cmorley
Revision 26 . . (edit) August 2, 2012 4:52 am by Cmorley
Revision 25 . . (edit) August 2, 2012 4:42 am by Cmorley
Revision 24 . . (edit) August 2, 2012 4:33 am by Cmorley
Revision 23 . . (edit) July 31, 2012 2:38 am by Cmorley
Revision 22 . . (edit) July 17, 2012 6:06 am by Cmorley
Revision 21 . . (edit) July 17, 2012 5:24 am by Cmorley
Revision 20 . . (edit) July 17, 2012 5:23 am by Cmorley
Revision 19 . . (edit) July 17, 2012 5:08 am by Cmorley
Revision 18 . . (edit) July 9, 2012 10:14 pm by Cmorley
Revision 17 . . (edit) July 9, 2012 10:12 pm by Cmorley
Revision 16 . . July 9, 2012 10:10 pm by Cmorley [Start documentation of Gscreen]
Revision 15 . . (edit) July 9, 2012 9:49 pm by Cmorley
Revision 14 . . (edit) July 9, 2012 9:28 pm by Cmorley
Revision 13 . . (edit) July 9, 2012 9:06 pm by Cmorley
Revision 12 . . (edit) July 3, 2012 2:06 am by Cmorley
Revision 11 . . (edit) July 3, 2012 12:49 am by Cmorley
Revision 10 . . (edit) July 3, 2012 12:45 am by Cmorley
Revision 9 . . (edit) July 3, 2012 12:10 am by Cmorley
Revision 8 . . (edit) July 3, 2012 12:05 am by Cmorley
Revision 7 . . (edit) July 2, 2012 11:59 pm by Cmorley
Revision 6 . . (edit) July 2, 2012 11:50 pm by Cmorley
Revision 5 . . (edit) July 2, 2012 11:37 pm by Cmorley
Revision 4 . . (edit) July 2, 2012 11:25 pm by Cmorley
Revision 3 . . (edit) July 2, 2012 11:23 pm by Cmorley
Revision 2 . . (edit) July 2, 2012 11:19 pm by Cmorley
Revision 1 . . (edit) July 2, 2012 10:16 pm by Cmorley
  

Difference (from prior major revision) (minor diff)

Changed: 210c210
*** INCREMENTS
*** PREFERENCE_FILE_PATH = ~/.gscreen_preferences
Allows one to specify the path and name of the preference file to use, otherwise all gscreens use the default one showm. the . at the beginning makes it a hidden file.


Changed: 212c212
*** MAX_SPINDLE_OVERRIDE
*** CYCLE_TIME = 100
The update time of Gscreen in milliseconds. Too low of a number uses too much CPU time making the screen laggy, too high makes it out of date.
50 is the minimum, there is no checked maximum. If this is missing 100 is the default


Changed: 214c214
*** MIN_SPINDLE_OVERRIDE
*** MAX_LINEAR_VELOCITY = 1.2
The maximuim velocity that the machine can be continuously JOGGED at


Changed: 216c216
*** MAX_FEED_OVERRIDE
*** DEFAULT_LINEAR_VELOCITY = .25
T deafult spped the machine will be continuously JOGGED at


Changed: 218c218
*** LATHE
*** INCREMENTS = 1 in, 0.1 in, 10 mil, 1 mil, 1mm, .1mm, 1/8000 in
list of incremental jogging rates - note metric and imperial are accepted


Changed: 220c220
*** TOOL_EDITOR
*** MAX_SPINDLE_OVERRIDE = 1.25
Represents percentage of maximum override eg this is 125% of specified speed.


Changed: 222c222
** [TRAJ]
*** MIN_SPINDLE_OVERRIDE =.75
Represents percentage of minimum override. eg this is 75% od specified speed


Changed: 224c224
*** COORDINATES
*** MAX_FEED_OVERRIDE = 2.0
Represents percentage of maximum override eg this is 200% of specified speed.


Changed: 226c226
*** MAX_LINEAR_VELOCITY
*** LATHE = 1
Used to select if the display is used for a lathe. It is ok to have this missing, it's then assumed false.<br?

Changed: 228c228
*** MAX_VELOCITY
*** TOOL_EDITOR

Changed: 230c230,232
*** LINEAR_UNITS
*** GEOMETRY =
Used by the gremlin plotter to select how the rotary axis will be displayed


** [TRAJ]

Changed: 232c234
*** AXIS_0
*** COORDINATES=
List of axis that are to be displayed.


Changed: 234c236,240
*** GEOMETRY
*** MAX_VELOCITY=
Maximum Velocity of the machine, used to calculate velocity override


*** LINEAR_UNITS=
Used to set machine's native units


*** ANGULAR_UNITS

Changed: 295c301
upload:gscreen_custom1.png

Gscreen Customization


Changed: 297,327c303
One thing to remember is if you use a custom screen option YOU are responsible for fixing it (if required) when updating linuxcnc.

* Local Glade files
if present, local glade files in the config folder will be loaded instead of the stock glade files

There is a switch to set set the base name -c name or if you name them gscreen.glade you don't need the switch


Note when making changes it is far easier to add widgets then subtract widgets and still have the screen work properly

making objects 'not visible' is one way to change the display without getting errors - this won't always work some widgets will be set visible again

Changing the names of gscreens regular widgets is probably not gonna work well either - but moving a widget while keeping the name is usually workable

You can now tell Gscreen to just load the glade file and not connect it's internal signals to it - This allows gscreen to load any GTK builder saved glade file

This means you can display a completely custom screen


* handler files
If present a handler file named gscreen_handler.py (or skinname_handler.py if using the switch) will be loaded and registered

only one file is allowed

There is a sample config called gscreen-gaxis

please see the gladevcp write-up about handler files


Here is gaxis and it's handler file:

upload:gscreen-gaxis1.png
upload:gaxis_handler1.png
upload:gaxis_handler2.png


There are special functions Gscreen checks the handler file for.


* initialize_widgets(self):
You can use this to set up any widgets and or call Gscreen's widget initialization function by adding 'self.gscreen.initialize_widgets' or add 'pass' so no widgets are initialized.
Gscreen's default initialization call now actually calls many separate functions. If you wish to incorporate some of those widgets then just call those functions directly.

* initialize_pins(self):
Same idea for this - it initializes HAL pins

* periodic(self)
This is called every 50 milliseconds - use it to update your widgets/HAL pins. you can call Gscreen regular periodic afterwards too, self.gscreen.update_position() or just add pass to not update anything.
Gscreen's default initialization call now actually calls many separate functions. If you wish to incorporate some of those widgets then just call those functions directly.

* connect_signals(self,handlers):
Same idea again. If you are using a completely different screen the default Gscreen you must add this or gscreen will try to connect signals to widgets that are not there. Gscreen's default function is called with self.gscreen.connect_signals(handlers) If you wish to just add extra signals to your screen but still want the default ones call this first then add more signals. If you signals are simple (no user data passed) then you can also use the GLADE signal selection in the GLADE editor.

* on_tool_change(self,widget)
You can use this to override the manual tool change dialog -this is called when 'gscreen.tool-change' changes state.
upload:gscreen_custom1.png


Changed: 329c305
* dialog_return(self,widget,displaytype,pinname):
use this to override any user message or manual tool change dialog. Called when the dialog is closed
upload:gscreen-gaxis1.png

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
Search:
Published under a Creative Commons License