Tag Info

Hot answers tagged

3

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 ...


3

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 ...


1

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 ...


1

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


1

You can edit the desciption about your program at the bottom in setup.py. setup.py is located at the main directory of your Quickly project.


1

You can use the set_opacity() method of GtkWindow object. It will expect a float, so you should do a type conversion before. try: self.set_opacity(float(title)) except ValueError: pass # Do something with the invalid value here.


1

Have a look at the FileChooserDialog. It should look something like this (untested): dialog = Gtk.FileChooserDialog("Please choose a file", self._parentwindow, Gtk.FileChooserAction.OPEN, (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.OK)) filter_img = gtk.FileFilter() ...


1

In addition to defining the functions to be called, you must connect the signal of the button. The easiest way to do this is to define a dict with a mapping from the names to the handlers and then pass it to the Gtk.Builder.connect_signals() method. Read here for more help.


1

For fixed buttons position, it's better to use GtkFixed or GtkLayout (with scroll) For buttons transparency, for me it's works as it should. If not try: Border Relief: None for flat button Uncheck Focus on Click for avoid any focus highlight Example: <?xml version="1.0" encoding="UTF-8"?> <!-- Generated with glade 3.16.1 --> ...


1

I also can't find an option in Glade 3.16 which is shipped with Ubuntu 14.04. They made some major GUI changes, so it's possible they forgot about this property. You could check if there's a bug report about it. In the meantime set the label property in your Python code: linkbutton.set_label("My Website")



Only top voted, non community-wiki answers of a minimum length are eligible