Hot answers tagged quickly
You are clicking the button before self.instvar is set. The on_textbox_changed handler is probably never called. Startup Glade and select your text entry. In the property editor on the right select the signals tab and connect the GtkEditable changed signal to the correct handler. You should also put a print statement inside on_textbox_changed to see if it ...
Usually, when the Icon= line is changed in a .desktop file, it should be visible in the launcher after log out/log in. When an application is re- installed its icon should change as well, there is no "Unity memory" as you mention it. Priority of .desktop files Another thing is that a local version of a .desktop file (in ~/.local/share/applications) has ...
There are 2 different ways to edit the menu items. Note that these steps also work for a toolbar and partially for a treeview too. Option 1 Select the menu by clicking on it in the editor (A) or search for it in the widget tree (B). A new Glade toolbar button will appear at the end with an "Edit" icon. Click that to bring up a new dialog where you can ...
You miss an underscore in the webview methods. The correct ones are webview.go_back() and webview.go_forward(). Which means your code becomes: def on_backbutton_clicked(self, widget): self.webview.go_back() def on_forwardbutton_clicked(self, widget): self.webview.go_forward() See the linked documentation page for some more convenient methods, ...
This piece of code solved the problem and prints the filename as I wished: def on_filechooserbutton_file_set(self, widget): self.videoInput = widget.get_filename() print "Video file Choosen: ", self.videoInput
Since VTE 0.38, vte_terminal_fork_command_full () has been renamed to vte_terminal_spawn_sync (). So if you are using newer versions, you have to change @ADcomp's answer into the following: terminal.spawn_sync( Vte.PtyFlags.DEFAULT, os.environ['HOME'], ["/bin/sh"], , GLib.SpawnFlags.DO_NOT_REAP_CHILD, None, None, )
Only top voted, non community-wiki answers of a minimum length are eligible