indicator application menu freezes irregularly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
indicator-application (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have written a python program with an application indicator. Sometimes (about 1 over 3 times the complete program is started afresh), but not regularly, the indicator menu shows, the items are getting focus, but nothing happens when clicking.
I started the program from a terminal window, and expect that on clicking on any of the 4 buttons, output is printed to the terminal window, and at clicking on button 4 the program is also ended and the application icon removed. After most starts of the program, that happens, but sometimes (about 1 in 3) the buttons appear correctly, but nothing happens when they are clicked.
A simplified version of my program is:
import gi
gi.require_
from gi.repository import Gtk as gtk
gi.require_
from gi.repository import AppIndicator3 as appindicator
def maken_indicator
APPINDICATOR_ID = 'ID_App_test'
indicator = appindicator.
indicator.
indicator.
gtk.main()
def build_menu():
menu = gtk.Menu()
item_open = gtk.MenuItem('Test 1')
item_
menu.
item_overzicht = gtk.MenuItem('text 2')
item_
menu.
item_start = gtk.MenuItem('text 3')
item_
menu.
item_quit = gtk.MenuItem(
item_
menu.
menu.show_all()
return menu
def quitGTK(source):
print "Quit program"
gtk.main_quit()
def laat_EA_
print "show text 1"
def overzicht_
print "show text 2"
def verberg_EA(source):
print "show text 3"
if __name__ == '__main__':
maken_
I am using ubuntu:
Description: Ubuntu 16.04.2 LTS
Release: 16.04
with python:
2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]