Tag Info

Hot answers tagged

6

Here are precisions added to bert's answer, about the fix that worked for me : sudo add-apt-repository ppa:jfi/test sudo apt-get update sudo apt-get dist-upgrade It should then work.


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

This appears to be a known issue with Glade on Ubuntu 13.10. See https://bugs.launchpad.net/ubuntu/+source/glade/+bug/1242865 The temporary fix as provided in comment #25 (https://bugs.launchpad.net/ubuntu/+source/glade/+bug/1242865/comments/25) works fine for me.


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

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 MSI Equivalent in Ubuntu is a .deb package. You will need your password regardless in Ubuntu Software Center. It will function just like you found it in the Software Center, but the package would exist wherever you downloaded it to. I personally use the Synaptic Package Manager as I can search for plenty of packages and select multiples to install then ...


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