Skip to content

Commit

Permalink
adjusting the buttons now with the rc file
Browse files Browse the repository at this point in the history
problem: fullscreenmode

solution: maybe hide all widget by default and show() them later
  • Loading branch information
hansu committed Jan 2, 2024
1 parent dc792a5 commit 6bc92ce
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
27 changes: 26 additions & 1 deletion configs/sim/gmoccapy/gmoccapy_800x600.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,30 @@
box_info.pack_end(self.widgets["ntb_info"], False, False, 0)
self.widgets["ntb_user_tabs"].append_page(box_info, Gtk.Label("Info"))


buttons = [ "btn_homing", "btn_touch", "btn_tool", "btn_exit", "btn_load",
"btn_reload", "btn_run", "btn_stop", "btn_step", "btn_from_line", "btn_edit",
"btn_delete", "btn_classicladder", "btn_hal_scope", "btn_status",
"btn_hal_meter", "btn_calibration", "btn_show_hal", "btn_reload_edit",
"btn_save", "btn_save_as", "btn_new", "btn_keyb", "btn_back_edit",
"btn_delete_tool", "btn_add_tool", "btn_reload_tooltable",
"btn_apply_tool_changes", "btn_select_tool_by_no", "btn_index_tool",
"btn_change_tool", "btn_tool_touchoff_x", "btn_tool_touchoff_z",
"btn_back_tool", "btn_home", "btn_dir_up", "btn_sel_prev", "btn_sel_next",
"btn_jump_to", "btn_select", "btn_back_file_load", "tbtn_estop", "tbtn_on",
"tbtn_user_tabs", "tbtn_setup", "tbtn_switch_mode", "tbtn_fullsize_preview0",
"tbtn_pause", "tbtn_optional_blocks", "tbtn_fullsize_preview1", "rbt_manual",
"rbt_mdi", "rbt_auto" ]

labels = [ "lbl_space_0", "lbl_space_1", "lbl_space_2", "lbl_replace_mode_btn",
"lbl_space_3", "lbl_space_4", "lbl_version", "lbl_space_5", "lbl_space_6",
"lbl_space_7", "lbl_space_8", "lbl_space_9", "lbl_hide_tto_x",
"lbl_space_10", "lbl_space_11", "lbl_space_12" ]

for b in buttons:
self.widgets[b].set_size_request(60, 56)

for l in labels:
self.widgets[l].set_size_request(60, 56)


# self.widgets.window1.fullscreen()
2 changes: 1 addition & 1 deletion src/emc/usr_intf/gmoccapy/gmoccapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def excepthook(exc_type, exc_obj, exc_tb):
#_BB_HOME_JOINTS will not be used, we will reorder the notebooks to get the correct page shown

# Default button size for bottom buttons
_DEFAULT_BB_SIZE = (90, 56)
_DEFAULT_BB_SIZE = (60, 56)

_TEMPDIR = tempfile.gettempdir() # Now we know where the tempdir is, usually /tmp

Expand Down

0 comments on commit 6bc92ce

Please sign in to comment.