Gnome 面板应用程序错误消息
如何查看 gnome 中面板应用程序的问题是什么,错误记录在哪里?
我正在玩 pygtk 中的面板应用程序。我可以重新设置它的父级并且它可以工作,但是当我尝试将其添加到面板时它失败了,我不知道为什么并且看不到任何错误。
这是我用来将实际使用与测试分开的代码。
if DEBUG == True:
from tempus_fugit import app
main_window = gtk.Window(gtk.WINDOW_TOPLEVEL)
main_window.set_title("DEBUG: Tempus Fugit Applet")
main_window.connect("destroy", gtk.main_quit)
applet = gnomeapplet.Applet()
app.tempus_fugit_factory(applet, None)
applet.reparent(main_window)
main_window.show_all()
gtk.main()
else:
from tempus_fugit import app
gnomeapplet.bonobo_factory("OAFIID:TempusFugit_Factory", gnomeapplet.Applet.__gtype__, "Tempus Fugit", "0.1", app.tempus_fugit_factory)
因此,当调试为 false,并且它是通过面板“添加到面板”功能启动时,我如何才能看到错误?
谢谢
How can I see what the problem is with a panel app in gnome, where are the errors logged to?
I am playing about with a panel app, in pygtk. I can re-parent it and it works, but when I try to add it to the panel it fails, and I don't know why and cant see any errors.
Here is the code I use to separate real use from testing.
if DEBUG == True:
from tempus_fugit import app
main_window = gtk.Window(gtk.WINDOW_TOPLEVEL)
main_window.set_title("DEBUG: Tempus Fugit Applet")
main_window.connect("destroy", gtk.main_quit)
applet = gnomeapplet.Applet()
app.tempus_fugit_factory(applet, None)
applet.reparent(main_window)
main_window.show_all()
gtk.main()
else:
from tempus_fugit import app
gnomeapplet.bonobo_factory("OAFIID:TempusFugit_Factory", gnomeapplet.Applet.__gtype__, "Tempus Fugit", "0.1", app.tempus_fugit_factory)
So when debug is false, and it's launched via the panel "add to panel" feature how can I see the error?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
打开终端并保持运行:
稍后将小程序添加到面板中。这些消息将出现在您的终端中。
Open a terminal and leave running:
Later add your applet into the panel. The messages will appear in your terminal.