Hot answers tagged

7

I have achieved a fade-out effect using pure GTK and CSS. It is only working in GTK 3.6 and I am not sure if a slide in / out effect would be possible, however, if you want, you can look at the source at launchpad.net/uberwriter It works through a state-change and then GTK Transitions... Maybe with height // width that would be possible, too. EDIT ...


7

quite later, but try to install gsettings-desktop-schemas.


6

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: # https://developer.gnome.org/gtk3/...


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.


5

So I to got interested in this after seeing your question, after a bit of goggling with out any interesting results I decided to try my self and see if i could figure something out. This is more of a workaround then an actual solution. I started by creating a test project using quickly: quickly create ubuntu-application foo Then i launched eclipse and ...


5

You must add a Related Action by clicking the "..." button. Once you have added an action, disable Use Action Appearance. Then you can clear the related action and set the button to whatever you wish. You can also continue using the action as sort of standardized actions in your program. For instance, most apps will have new buttons, so with actions you ...


5

The quickly run command uses a file .quickly in the project directory. I think you might have missed this in copying, because it is hidden by default. Type Ctrl+H to see hidden files in the default file manager. Then make sure you move this hidden file to the new directory.


5

Yes, you can By default quickly uses pyGOBJECT for creating applications, It is a cross platform so you can use these apps in other linux distros. But you may need to make tiny changes in the code because there are some ubuntu specifc features like application indicator which is not available in other distros.


5

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


4

Try to kill it via the process list: Or - if you want to be more nerdy - kill it via the console, using $>top


4

The command is quickly add dialog dialogname and needs ran from the app directory. Note, the word "Dialog" is automatically added to the dialog name.


4

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, )


4

Following the bug report in the post by jmolinaso above there now seems to be an even easier way to run your Quickly application from the command line and set the ./bin/APPNAME file as the Main Debug file in Wing IDE. If had trouble reading the notation in Patch for bug 976817 then this is a way to look at it: In your shiny folder you have a "bin" folder, ...


4

When choosing the Center on Parent position, you must also let the dialog know which window is the parent ofcourse. This can either be done in Glade, but only if the parent window is inside the same Glade-file. Or by calling this method: gtk.Window.set_transient_for(parentwindow)


4

It's a bug in the current version and is fixed in trunk as far as I know. So, 2 options: Compile Glade from trunk and use that. Use this workaround: first add a new Related action (right above the label option) and set Use action appearance to False. Remove the action again if needed.


4

you have to write the command like quickly create ubuntu-application mybrowser you are missing the - between Ubuntu-application template.


4

Threads and GTK don't always play nice together. There are a few tricks that help, but don't be surprised to have weird bugs. I recently removed all threads from an application and it feels much better. So, the first thing you should think about is whether you can rewrite your application to take advantage of the GLib async methods. If you insist on having ...


4

This library is licensed using the LGPLv3, so you can use it with a commercial app without problems. Now you have a couple of options to solve your problem: The easiest way is to just include pygal in your project. Just add it as a module. Copy the pygal folder to your project root folder and import it. A somewhat more complicated way is to add a script ...


4

Here's how I did it: Change #!/usr/bin/python in #!/usr/bin/python3 on the first line of the file foo/bin/foo. In the file foo/foo_lib/helpers.py, lines 65-70, change # Set the logging level to show debug messages. if opts.verbose: logger.setLevel(logging.DEBUG) logger.debug('logging enabled') if opts.verbose > 1: lib_logger.setLevel(...


3

Such animation is not achievable in pure GTK+. There are no mechanisms that would process it. I have given a quick look on gedit's source code, it's clear that they process this animation on their own. I have not looked into details, for the code related to animations is quite expanded, but I have noted that they incorporate Cairo drawing features for the ...


3

I've added building instructions for win32 at gnome live page of PyGobject https://wiki.gnome.org/PyGObject#Building_on_Win32_with_cx_freeze


3

See here: http://python-gtk-3-tutorial.readthedocs.org/en/latest/treeview.html You can get the selection on an event by connecting a selection object to an event: select = tree.get_selection() select.connect("changed", on_tree_selection_changed) def on_tree_selection_changed(selection): model, treeiter = selection.get_selected() if treeiter != ...


3

Generally, the answer is no. According to the Filesystem Hierarchy Standard (FHS), only files that are required to be in a certain location (like lock files and device files) are allowed to be outside of the /opt tree if your software is installed this way. You are correct in that you can install icons to /usr/share/icons, but again, don't do it if your ...


3

Yes You can use quickly for enterprise applications. Quickly is just a tool which connects editor, visual designer, packaging and sharing. Currently quickly supports python as the programming language, glade as the interface designer and GTK+ as the toolkit. Choosing it for Enterprise applications is your choice, but I personally recommend QT C++ for ...


3

Quickly 12.08.1 did not "wipe" commandline arguments from your program. It just moved them from bin/project_name to project_name/__init__.py. There you will find the parse_options function, which you can edit to your liking. Second question: I can not speak for the quickly developers, but my guess would be that it is easier to upgrade a project, if you ...


3

Here's a simple example: from gi.repository import Gtk class MyExample(Gtk.Window): def __init__(self): Gtk.Window.__init__(self) self.connect("delete-event", Gtk.main_quit) liststore = Gtk.ListStore(str) for match in ["test1", "test2", "test3", "spam", "foo", "eggs", "bar"]: liststore.append([match]) ...


3

According to the comments of this answer the package quickly-ubuntu-template was missing. If you install the package quickly the package quickly-ubuntu-template is not installed because it is just recommended. You can see this with apt-cache show quickly. So you have to manually install that package.: sudo apt-get install quickly-ubuntu-template


3

For development using quickly i would recommend these documentation: Pygtk 3 documentation - for understanding the glade objects Python 2.7 documentation - for the code For making a gui (explore this site a bit)


3

The GTK_CAN_FOCUS flag is required to be set. If using Glade to develop the UI, you can click on your GtkEntry element, then in the Properties panel, click on the Common tab, then toggle the Can focus: button to Yes. Run your application again and you will be able to set focus to the field and enter text.


3

Using time.sleep() is not a good idea when you are using gtk. You could try use a timer event. (I don't use quickly anymore but this should work i think.) from gi.repository import GLib class Just_for_correct_coding(): self.per = int() def start(self): GLib.timeout_add_seconds(1, self.calc) def calc(self,treeiter): store=self....


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