开源改变世界!!

master-gtk3 – gmoccapy – 设置 #1182

推推 grbl 2年前 (2023-01-30) 89次浏览
打开
gmoccapy 打开了这个问题 2021 年 6 月 7 日 · 7条评论
打开

master-gtk3 – gmoccapy – 设置#1182

gmoccapy 打开了这个问题 2021 年 6 月 7 日 · 7条评论

注释

master-gtk3 - gmoccapy - 设置 #1182
合作者

主题和声音的设置不起作用

master-gtk3 - gmoccapy - 设置 #1182
合作者

今天我一直在努力让主题与 Touchy 一起工作,我认为可能存在我们无法控制的问题。

Touchy 现在适用于某些主题,但有很多属性名称更改的警告。

master-gtk3 - gmoccapy - 设置 #1182
合作者作者

HLo Andy,你能分享一下你的触摸吗,这样我就可以试着让它适应 gmoccapy

最终解决方案需要使用 css 样式来自定义 gui 的视图

master-gtk3 - gmoccapy - 设置 #1182
合作者
安迪普 评论了 2021 年 6 月 7 日  

我希望我能看看相同的(简单的)修复是否有帮助,但目前我什至无法在 master-gtk3 中启动 gmoccapy 示例配置

master-gtk3 - gmoccapy - 设置 #1182
合作者

为什么ui需要设置主题?使用系统主题有什么问题?
@andypugh启动 gmoccapy 时出现哪个错误?

master-gtk3 - gmoccapy - 设置 #1182
合作者

@andypugh启动 gmoccapy 时出现哪个错误?

第一个对话框:
https
: //photos.app.goo.gl/Xys9JQeVkxkSsmdaA 然后是第二个对话框(Gmoccapy 在它后面打开)
https://photos.app.goo.gl/GboNxENjSonM5Kh88
关闭对话框关闭 Gmoccapy:

andypugh@buster:~/linuxcnc$ linuxcnc
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/andypugh/linuxcnc-dev/configs/sim/gmoccapy'
Machine configuration file is '4_axis.ini'
Starting LinuxCNC...
Found file(REL): ./core_sim4.hal
Note: Using POSIX realtime

trivkins: coordinates:xyzc
   Joint 0 ==> Axis X
   Joint 1 ==> Axis Y
   Joint 2 ==> Axis Z
   Joint 3 ==> Axis C
trivkins: Recommend: kinstype=both

Unexpected realtime delay on task 0 with period 100000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Found file(REL): ./spindle_sim.hal
Found file(REL): ./simulated_home.hal
Unexpected realtime delay on task 0 with period 100000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.

Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
  File "/home/andypugh/linuxcnc-dev/lib/python/gladevcp/iconview.py", line 188, in __init__
    pixbuf = Gtk.IconTheme.get_default().load_icon("gtk-quit", 48, 0)
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'gtk-quit' not present in theme Tango (0)

task: main loop took 0.538538 seconds
task: main loop took 0.556755 seconds
task: main loop took 0.555996 seconds
task: main loop took 0.578372 seconds
task: main loop took 0.013969 seconds
task: main loop took 0.034967 seconds
task: main loop took 0.030826 seconds
task: main loop took 0.032279 seconds
task: main loop took 0.011937 seconds
task: main loop took 0.021109 seconds
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'on_btn_jump_to'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
Icon from stock
0  =  /home/andypugh/linuxcnc-dev/bin/gmoccapy
1  =  -ini
2  =  /home/andypugh/linuxcnc-dev/configs/sim/gmoccapy/4_axis.ini
Entry = trivkins
Entry = coordinates=xyzc
found the following coordinates xyzc

**** GMOCCAPY GETINIINFO **** 
Number of joints = 4
4 COORDINATES found = xyzc
joint 0 = axis x
joint 1 = axis y
joint 2 = axis z
joint 3 = axis c
{0: 'x', 1: 'y', 2: 'z', 3: 'c'}

**** GMOCCAPY GETINIINFO **** 

[KINS] KINESTYPE is trivkins
**** GMOCCAPY GETINIINFO **** 
No MIN_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 0.1 degree / min
**** GMOCCAPY GETINIINFO **** 
No DEFAULT_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 360 degree / min
**** GMOCCAPY GETINIINFO **** 
No MAX_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 3600 degree / min
**** GMOCCAPY GETINIINFO **** 
No MAX_RAPID_OVERRIDE entry found in [DISPLAY] of INI file 
 Default settings 100 % applied!
**** GMOCCAPY GETINIINFO **** 
Preference file path: /home/andypugh/linuxcnc-dev/configs/sim/gmoccapy/gmoccapy_4_axis.pref
**** GMOCCAPY GETINIINFO **** 
 No DEFAULT_SPINDLE_SPEED entry found in [DISPLAY] of INI file
**** GMOCCAPY INFO ****
**** no valid probe config in INI File ****
**** disabled tool measurement ****
**** GMOCCAPY INFO ****
**** Entering make_DRO
axis_list = ['x', 'y', 'z', 'c']
**** GMOCCAPY INFO ****
**** Entering make ref axis button
/home/andypugh/linuxcnc-dev/bin/gmoccapy:717: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  lbl = Gtk.Label("")
Filepath =  /home/andypugh/linuxcnc-dev/share/gmoccapy/images/ref_all.png
get button with image
Filepath =  /home/andypugh/linuxcnc-dev/share/gmoccapy/images/ref_x.png
get button with image
Filepath =  /home/andypugh/linuxcnc-dev/share/gmoccapy/images/ref_y.png
get button with image
Filepath =  /home/andypugh/linuxcnc-dev/share/gmoccapy/images/ref_z.png
get button with image
Filepath =  /home/andypugh/linuxcnc-dev/share/gmoccapy/images/ref_c.png
get button with image
Filepath =  /home/andypugh/linuxcnc-dev/share/gmoccapy/images/unhome.png
get button with image
get button with image
/home/andypugh/linuxcnc-dev/bin/gmoccapy:735: DeprecationWarning: Gtk.Image.set_from_stock is deprecated
  image.set_from_stock(stock, 48)
**** GMOCCAPY INFO ****
**** Entering make touch button
/home/andypugh/linuxcnc-dev/bin/gmoccapy:896: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  btn = Gtk.ToggleButton(_("  edit\noffsets"))
/home/andypugh/linuxcnc-dev/bin/gmoccapy:900: DeprecationWarning: Gtk.Widget.modify_bg is deprecated
  btn.modify_bg(Gtk.StateFlags.ACTIVE, Gdk.color_parse("#FFFF00"))
get button with image
get button with image
get button with image
get button with image
/home/andypugh/linuxcnc-dev/bin/gmoccapy:944: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  btn = Gtk.Button(_("zero\n G92"))
/home/andypugh/linuxcnc-dev/bin/gmoccapy:959: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  btn = Gtk.Button(_("    set\nselected"))
get button with image
**** GMOCCAPY INFO ****
**** Entering make jog increments
**** GMOCCAPY INFO ****
**** Entering make jog button
/home/andypugh/linuxcnc-dev/bin/gmoccapy:1168: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  btn = Gtk.Button(name.upper())
**** GMOCCAPY INFO ****
**** Entering make macro button
found 5 Macros
get button with image
Macro i_am_lost has image link
Image = /home/andypugh/linuxcnc-dev/configs/sim/gmoccapy/macros/images/i_am_lost.png
get button with image
/home/andypugh/linuxcnc-dev/bin/gmoccapy:1239: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label, stock, use_stock" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  btn = Gtk.Button(lbl, None, False)
Macro go_to_position X-pos Y-pos Z-pos has image link
Image = /home/andypugh/linuxcnc-dev/configs/sim/gmoccapy/macros/images/goto_x_y_z.png
get button with image
get button with image
get button with image
**** GMOCCAPY INFO ****
**** arrange DRO
4
**** GMOCCAPY INFO ****
**** Place in table
/home/andypugh/linuxcnc-dev/bin/gmoccapy:1468: DeprecationWarning: Gtk.Table.resize is deprecated
  self.widgets.tbl_DRO.resize(rows, cols)
**** GMOCCAPY INFO ****
**** get DRO order
**** GMOCCAPY INFO ****
**** arrange JOG button
less than 6 axis

(gmoccapy:8138): Gtk-WARNING **: 19:14:59.609: Invalid icon size 48


(gmoccapy:8138): Gtk-WARNING **: 19:14:59.609: Invalid icon size 48

**** GMOCCAPY INFO ****
**** Invalid embedded tab configuration ****
**** No tabs will be added! ****
**** GMOCCAPY INFO ****
**** no audio available! ****
**** PYGST libray not installed? ****
**** is python-gstX.XX installed? ****
**** GMOCCAPY INFO ****
**** Entering init gremlin ****
Kinematics type changed
_set_enable_tooltips =  True
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'on_btn_jump_to'
Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
  File "/home/andypugh/linuxcnc-dev/bin/gmoccapy", line 5299, in <module>
    app = gmoccapy(sys.argv)
  File "/home/andypugh/linuxcnc-dev/bin/gmoccapy", line 328, in __init__
    self._init_IconFileSelection()
  File "/home/andypugh/linuxcnc-dev/bin/gmoccapy", line 2101, in _init_IconFileSelection
    self.widgets.IconFileSelection1.show_filelabel(False)
  File "/home/andypugh/linuxcnc-dev/lib/python/gladevcp/iconview.py", line 404, in show_filelabel
    self.file_label.hide()
AttributeError: 'IconFileSelection' object has no attribute 'file_label'

Jog Pin Changed
x+
Jog Button released = x+
Jog Pin Changed
x-
Jog Button released = x-
Jog Pin Changed
y+
Jog Button released = y+
Jog Pin Changed
y-
Jog Button released = y-
Jog Pin Changed
z+
Jog Button released = z+
Jog Pin Changed
z-
Jog Button released = z-
Jog Pin Changed
c+
Jog Button released = c+
Jog Pin Changed
c-
Jog Button released = c-
on tool chnage

(gmoccapy:8138): Gtk-WARNING **: 19:15:00.178: Invalid icon size 48


(gmoccapy:8138): Gtk-WARNING **: 19:15:00.178: Invalid icon size 48

_kill_dynamic_childs
Shutting down and cleaning up LinuxCNC...
task: 237979 cycles, min=0.000005, max=0.578372, avg=0.001121, 16 latency excursions (> 10x expected cycle time of 0.001000s)
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/andypugh/linuxcnc_debug.txt
and
    /home/andypugh/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
master-gtk3 - gmoccapy - 设置 #1182
合作者作者

没有图标 gtk 退出主题探戈

您可以更改主题并尝试使用 clearlooks 吗?
连这个都需要我来修🙄

master-gtk3 - gmoccapy - 设置 #1182
合作者

“Clearlooks”与“Tango”不是同一种“主题”。
Tango 似乎是一个“图标主题”,我认为它也是 xfce / LinuxCNC ISO 的默认设置。
我选择了“Menta”,然后 Gmoccapy 就启动了。

免费注册 在 GitHub 上加入此对话。已有帐户? 登录评论
项目

还没有

发展

没有分支机构或拉取请求

3人参加
master-gtk3 - gmoccapy - 设置 #1182master-gtk3 - gmoccapy - 设置 #1182master-gtk3 - gmoccapy - 设置 #1182

喜欢 (0)