Gmoccapy Tab not displayed

More
3 years 8 months ago #265057 by nf1z
I'm at a bit of a loss where to start looking at this.

I am migrating to a new PC for my mill while upgrading to 2.9.0pre LinuxCNC.  Mostly painless on the software side, but I cannot get a gmoccapy tab to load.  Here is a description of the system as it was, which includes a screen shot showing the Spindle Monitor tab in (over?) the Preview section of the screen:
forum.linuxcnc.org/show-your-stuff/41282...-spindle-pendant-etc

What I am seeing now is just the plain un-tabbed preview window.  My .ini [DISPLAY] section is just the same as it was:
Code:
[DISPLAY] DISPLAY = gmoccapy CYCLE_TIME = 150 <etc...> EMBED_TAB_NAME = Spindle Monitor EMBED_TAB_LOCATION = ntb_preview EMBED_TAB_COMMAND = gladevcp -x {XID} -H Sp_mon_2.hal Sp_mon_2.glade EMBED_TAB_NAME = tool sensor EMBED_TAB_LOCATION = box_right EMBED_TAB_COMMAND = gladevcp -x {XID} -H tool_sensor3.hal tool_sensor3.glade EMBED_TAB_NAME = Spindle Button EMBED_TAB_LOCATION = box_custom_4 EMBED_TAB_COMMAND = gladevcp -x {XID} -H spindle_button.hal spindle_button.glade
All the associated HAL files are also unchanged. The other two EMBED_TABs are fine.  The spindle driver python script is working fine, and all the output pins are correct.  If I set EMBED_TAB_LOCATION to other values (box_right, ntb_user_tabs,..), these work as expected.

I tried running linuxcnc with -d, and gladevcp with -d, but nothing leaps out, except maybe this?
Code:
/usr/bin/gmoccapy:3377: DeprecationWarning: Gtk.FontButton.get_font_name is deprecated   self.notification.set_property('font', self.widgets.fontbutton_popup.get_font_name()) /usr/bin/gmoccapy:378: DeprecationWarning: Gtk.FontButton.set_font_name is deprecated   self.widgets.fontbutton_popup.set_font_name(self.prefs.getpref("message_font", "sans 10", str)) /usr/bin/gmoccapy:473: DeprecationWarning: Gtk.ColorButton.set_color is deprecated   self.widgets.abs_colorbutton.set_color(Gdk.color_parse(self.abs_color)) toolchange_postgui.hal:21: Warning: File contains DOS-style line endings. 71303175 spindle_button.hal:11: Warning: File contains DOS-style line endings. 69206019 (gladevcp:3356): Gtk-WARNING **: 20:22:45.743: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height 684 (gladevcp:3356): Gtk-WARNING **: 20:22:45.743: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node border, owner GtkFrame) (gladevcp:3356): Gtk-WARNING **: 20:22:45.743: Negative content width -33 (allocation 1, extents 17x17) while allocating gadget (node button, owner HAL_ToggleButton)

My problem is I don't know how to proceed.  If anyone knows the cause, or can suggest a way to proceed, I'm all ears.

Please Log in to join the conversation.

More
3 years 8 months ago #265073 by 0x2102
Replied by 0x2102 on topic Gmoccapy Tab not displayed
Not 100% sure what the problem is, but I would start by cleaning up the "DOS-style line endings" warnings in the 2 HAL files listed.

Gmoccapy HAL connections should all be in your gmoccapy_postgui.hal file.

Otherwise, try to attach the full output.

Please Log in to join the conversation.

More
3 years 8 months ago #265164 by nf1z
Replied by nf1z on topic Gmoccapy Tab not displayed
Thanks for the reply, but it turns out I'm an idiot.  The tabs on the Preview window are there but not visible if the screen is too small; if you enlarge the window, either using the button provided to enlarge the preview area, or expand the screen to the right, or go full screen, the tabs slide into view from the left.  This applies also to the tool offset window, which is tabbed onto the preview area.  I don't remember doing anything to make this happen, so I assume it is a design feature of gmoccapy.  Perhaps a result of adding my tabs?

I wonder if there is a simple way to make the tabs always visible, perhaps by moving them to the right side of the preview section, or making the preview area left-justified?  Makes more sense to me.

Please Log in to join the conversation.

More
3 years 8 months ago #265314 by andypugh
Replied by andypugh on topic Gmoccapy Tab not displayed

the tabs slide into view from the left.  This applies also to the tool offset window, which is tabbed onto the preview area.  I don't remember doing anything to make this happen, so I assume it is a design feature of gmoccapy.
I think this is probably a bug in Gmoccapy rather than a feature. I have noticed the same thing trying to get the lathe macros to work. 
(Though it is probably inbuilt behaviour of the GUI framework rather than deliberate behaviour.)

Please Log in to join the conversation.

Time to create page: 0.571 seconds
Powered by Kunena Forum