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.
精彩评论