小编use*_*537的帖子

Python + GTK - 如何抑制警告

当我启动我的 python 程序时,终端充斥着:

rcGUI.py:331: Warning: Attempt to add property GtkSettings::gtk-label-select-on-focus after class was initialised
label1 = gtk.Label("Current tools configured:")
rcGUI.py:286: Warning: Attempt to add property GtkSettings::gtk-scrolled-window-placement after class was initialised
scroll_window = gtk.ScrolledWindow()
rcGUI.py:291: DeprecationWarning: use gtk.TreeView
infoList = gtk.CList(2, ["Tool" , "Version"])
rcGUI.py:291: Warning: Attempt to add property GtkSettings::gtk-button-images after class was initialised
infoList = gtk.CList(2, ["Tool" , "Version"])
rcGUI.py:217: Warning: Attempt to add property GtkSettings::gtk-can-change-accels after class was initialised
toolCombo = gtk.combo_box_entry_new_text()
rcGUI.py:217: Warning: Attempt to add property …
Run Code Online (Sandbox Code Playgroud)

python gtk pygtk

6
推荐指数
1
解决办法
2794
查看次数

标签 统计

gtk ×1

pygtk ×1

python ×1