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


2

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

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

The correct way to take an Screenshot using PyGobject (the Gtk version used by Quickly) is: from gi.repository import Gdk window = Gdk.get_default_root_window() x, y, width, height = window.get_geometry() print("The size of the root window is {} x {}".format(width, height)) # get_from_drawable() was deprecated. See: # ...


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'll need atleast version 1.2.0 of matplotlib and then use the GTK3 backends. Example taken from http://matplotlib.org/examples/user_interfaces/embedding_in_gtk3.html #!/usr/bin/env python """ demonstrate adding a FigureCanvasGTK3Agg widget to a Gtk.ScrolledWindow using GTK3 accessed via pygobject """ from gi.repository import Gtk from ...


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