开发者

PyGTK app is not quitting properly

开发者 https://www.devze.com 2023-01-26 12:10 出处:网络
I wrote a little PyGTK app: Workcycler Now I have the problem that I need t开发者_C百科o hit the quit button twice for it to quit and I don\'t know why.

I wrote a little PyGTK app: Workcycler

Now I have the problem that I need t开发者_C百科o hit the quit button twice for it to quit and I don't know why. I´ve tested it extensively and it allways calls all quit functions but the program simply doesn't close after the first time.

It's a pretty short script so could someone please have a look over it?

I think the problem may come from using python's timers or a part from the pygame lib (mixer).

These are the important files I think: workcycle.py and tray.py


You are running the workcycle.ui.tray.WorkcycleTray.start method twice (so gtk.main run twice ) once in the workcycler and another in workcycle.py line 20, comment that line and everything works fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号