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.


2

Change control file in debian/DEBIAN folder, edit "Depends" field. Example of control file: Package: root-your-phone-tool Version: 1.0.0 Architecture: all Section: base Maintainer: Gustaf Haglund <forumgh@live.com> Depends: android-tools-adb, python, python-gtk2 Description: Root your phone easy with this tool.


2

Quickly doesn't offer any helpers to set up a text config file, you'll have to do that yourself. GLib give you an easy way to get the user config directory, GLib.get_user_config_dir() and you can use ConfigParser to handle the file itself. Something like so: from gi.repository import GLib import ConfigParser [....] confDir = ...


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

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

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



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