Tagged Questions
0
votes
1answer
28 views
Glade GUI in Python 2.7 crashes
I created a simple program using a glade .xml file and it, whenever I run the program, it crashes!
Here's the Python code:
#!/usr/bin/env python
import pygtk
pygtk.require("2.0")
import gtk
class ...
1
vote
0answers
11 views
Editing the GtkNotebok's Default Popup Menu
I'd like to know if it's possible to append a menu item to the popup menu that appears by default on right-clicking a GtkNotebook's tab page.
Thanks.
0
votes
1answer
66 views
ComboBoxText in Glade / GTK+3 / Python - disappears when displayed 2nd time
I'm trying to implement a drop down list in an Ubuntu app using Glade (GTK+3) and Python. I can get the ComboBoxText to display, populated with strings. However when I close the window it is contained ...
10
votes
3answers
211 views
What is the recommended widget toolkit for Ubuntu desktop?
As I understand it, Qt - C++ and QML - or HTML5 are recommended for writing Ubuntu for Phones applications.
Also, correct me if I'm wrong, but Python is the preferred language for Ubuntu Desktop. ...
2
votes
0answers
148 views
QML/Qt Development path verses “Quickly” and Gtk
It seems like recently the path Ubuntu is moving towards is to have code developed with QML and Qt, and that appears to sync with their move to be able to target tablets, phones, TV devices and the ...
1
vote
1answer
27 views
How can I bind Gio.Settings of TextBuffer or TextView?
I'm trying to bind a TextView to the key "text" by TextBuffer. I get the text, but this property is not recorded.
widget = self.builder.get_object('textbuffer_text')
settings.bind("text", widget, ...
6
votes
2answers
138 views
Create a Gtk Window insensitive to Show Desktop and Won't show in Launcher
I want to make a Gtk.Window which is pinned to the Desktop and acts like a desktop widget. I've found that I can do this by setting self.set_type_hint(Gdk.WindowTypeHint.DESKTOP) which keeps it below ...
4
votes
1answer
290 views
Is GTK+ supported on Ubuntu for phones
I wondered if GTK UI library would be supported on Ubuntu phone and tablet ?
I know the SDK for mobile encourage QML/QT but will it be still possible to develop apps for phones, and especially ...
2
votes
0answers
150 views
How do I get high resolution icons in Unity for my application without a .desktop file?
I am trying to fix a problem I found with a Java application. It has a too low res icon. After reading the source of it I modified it to have a bigger icon. SWT uses the gtk_window_set_icon() function ...
0
votes
0answers
21 views
AppInfo.set_default_from_type doesn't work
I want to change the default apps so i use Gio.AppInfo.set_default_from_type(type) and it returns true but when i open a file it opens with the previous application.
8
votes
1answer
254 views
Make sniqt recognize all tray abilities (or create a working indicator in Qt)
There is this old thread of mine: How do I create a working indicator with Qt/C++? where I was suggested to use the QSystemTray library for making a tray icon in Ubuntu for my application.
Sniqt is a ...
2
votes
1answer
149 views
How to add a print dialog to an application
I'd like to add a print dialog to my Python + GTK app, and I believe there are at least two methods:
The upstream GTK print dialog
The CUPS print dialog
I'm wondering which would be the ...
2
votes
1answer
151 views
Gtk Textview: Pango Letter Spacing
I am desperatly trying to find some working solution on how to modify the Letter Spacing in a GTK TextView.
I am using python with GTK 3.6 -- It seems that the solution is to somehow use Pango, but I ...
1
vote
1answer
113 views
writing note taking app, save and load text with tags from textbuffer written in python and glade
I am writing a note taking app with python and glade. I've been searching the web for the how to save and retrieve textbuffer with tags from simple app made with python and glade. I would like to get ...
1
vote
2answers
305 views
How do I change GTK theme of my app in run time?
I recently noticed that monodevelop, can change GTK theme in runtime . How do I add it in my quickly app?
0
votes
0answers
81 views
I can't compile a C source file written with VIM gtk libraries included.Probably I haven't configured well gtk+ [duplicate]
I installed gtk+,but I can't make use of the gtk libraries (include files) when I write a C source file using VI in terminal and compile it with the command that I mention above.
...
1
vote
0answers
77 views
Quickly Warning
Every time I run my application I receive these warning errors can anyone tell me what is causing them?
$ quickly run
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning:
...
1
vote
0answers
99 views
How to design non-windowed Gtk.Frame in Glade?
I'm building a ToDo app for personal purposes, and I'm using Quickly and Glade.
I want it to display a list of the pending to-do elements. The problem I'm having is that I can't find the way to ...
1
vote
2answers
48 views
How to display a “What's new” dialog on every new version of my app
I'd like to be able to present a dialog that runs at the start of my application and shows the new features this new version implements.
This dialog should only run once, and not be showed again ...
1
vote
2answers
227 views
Error accessing Gio.Gsettings on application made in quickly
I am trying to develop an application using the quickly/pygtk stack. I got my Gsettings schemas all set up in ~/app-name-here/data/glib-2.0/schemas/net.launchpad.app-name-here.gschema.xml correctly ...
4
votes
2answers
123 views
How to rename an application while developing with Quickly
I've been developing an application using PyGI and Quickly, and I now need to rename it. Is there any quick way to change all of the app name references in a Quickly application, or will I just need ...
0
votes
1answer
114 views
window creation issue Python Gtk via Quickly
I'm currently learning python and GTK so please forgive the noobish question,
I have a program (created in quickly) that has two main windows, that is to say that depending on context one or the ...
3
votes
1answer
181 views
How can I programatically show/hide my app window with global shortcut key?
I'm writing a Notational Velocity clone for Gnome/Ubuntu using Quickly (PyGI) and I want to allow users to set a global shortcut key that will toggle the visibility of the app window when the app is ...
1
vote
1answer
242 views
Why can't I define the size of a Gtk.Entry embedded in a Gtk.Toolbar?
I have embedded a Gtk.Entry box into a Gtk.Toolbar, however changing the requested width of practically anything (i.e. the Gtk.ToolItem that contains the Gtk.Entry and the Gtk.Entry itself) doesn't ...
0
votes
0answers
37 views
Buttons in Glade [duplicate]
Possible Duplicate:
What GTK widget is this?
I'm starting to learn Glade and Python and there's an application that I have in mind, but I'm having lots of trouble in styling the default ...
4
votes
2answers
203 views
How to show a window of an already active app when trying to open a new instance of that app
I know the question is a bit vague. I'll try to explain better below:
My app (python/gtk) is mostly an indicator. Using this indicator you can choose to show/hide the main window.
When I try to open ...
0
votes
0answers
58 views
Problems building application for Ubuntu App Showdown [duplicate]
Possible Duplicate:
Launchpad failed to build after “quickly submitubuntu”
I have managed to submit my source application to the Ubuntu build servers, however it's not building.
...
0
votes
1answer
92 views
How to use inputted text with quickly
I just need the code necessary to have my application assign the input from a text box to a variable after 'Enter' is pushed, and then use it to change a label.
This is what I have for this problem:
...
2
votes
2answers
526 views
GtkFileChooserButton 'Select Folder' mode returns no path
I have added a GtkFileChooserButton to my app via Glade. It is set to folder selection mode. When the widget is clicked it shows a dropdown list of Nautilus bookmarks with an 'other' option in the ...
3
votes
1answer
2k views
Why can python3 not import gi.repository?
Python2 does not suffer the same problem.
greg@greg-precise:~$ python3
Python 3.2.3 (default, May 3 2012, 15:51:42)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more ...
0
votes
1answer
157 views
WebKit.WebView - wrap content
Currently, I have my WebKit.WebView in a ScrolledWindow, because otherwise my window would resize to fir the content. In stead, I would like the content to adjust to the container. So text should ...
0
votes
1answer
52 views
Problem with 'insert_at_cursor' attribute
I made something, so after clicking a button, some text should appear in the TextView. Part of my code:
def on_button1_clicked(self, builer):
self.writetest = ...
1
vote
1answer
100 views
Quickly add Scrolling to Window
while creating my ubuntu application, I wanted to add in several images and then allow the user to scroll through them. The problem I am having, is that it just cuts the image off, and there are no ...
0
votes
0answers
26 views
GtkWidget signal when loaded?
What is the closest signal to a GtkWidget's subclass constructor in PyGi in terms of execution order?
Looking over the documentation I cannot find a signal along the lines of 'load'.
Some kind of ...
1
vote
1answer
956 views
How to draw on mouse click in Gtk.DrawingArea using pygi
I am writing a small application using PyGI which will interactively draw a line on a Gtk.DrawingArea between mouse clicks. But I am unable to figure out how to draw using the cairo context at the ...
1
vote
1answer
70 views
GTK+ Custom Accelarator Groups
I have successfully manage to add an accelerator to a menu item with the gtk_widget_add_accelerator() function.
What bothers me is how i can add a custom accelerator that widget.With the first ...
3
votes
1answer
134 views
Ambiance theme text stays black -
I have used Jono Bacons creating your first ubuntu application to discover how to theme toolbars using the ubuntu theme.
I followed the exact same code and the program loads with a black toolbar, ...
0
votes
1answer
485 views
Glade Widget Color
I start to get familiar with glade and quickly but one thing I can't figure out. How can I set colors, e.g. background colors or label font colors? Can I do this in Glade or do I have to do it in ...
0
votes
1answer
96 views
Opening 2 top level windows (quickly/pygtk)
Is there a way using quickly to have an appliaction have two completly seperate windows (not a window with a dialog) And be able to open each of the windows from each other and maybe even also from ...
2
votes
1answer
199 views
Maximize and Minimize Buttons disabled on my Quickly application
I was editing some basic settings in my application window design in Quickly/ GTK when I noticed that when I ran my app there was only a close button, not a maximize or minimize button. I know this is ...
0
votes
1answer
111 views
Quickly Glade Button link to external program [closed]
this is my first post so forgive me for any errors. I am using Quickly to create a program. The problem I am having, is when I create the button, I am unable to set the command I wish to launch on the ...
0
votes
0answers
94 views
Why doesn't my MainWindow get focus?
window = self.builder.get_object("main_window")
print window
print window.get_focus()
print window.has_focus()
print window.is_active()
print window.has_toplevel_focus()
Terminal output:
...
0
votes
1answer
137 views
0
votes
1answer
84 views
How to add multiple pages which can be switched on press of a button in pyGTK using quickly?
I am building my first app using quickly, pyGTK and python. I am confused how to add multiple pages to the same window and how to switch between multiple windows on click of button ?
In visual studio ...
1
vote
2answers
311 views
Trying to create a GtkTreeView from Python, doesn't seem to work
I'm writing an app using Gtk/PyGI, and I need to create a sidebar with a Nautilus-like tree.
However, Gtk refuses to cooperate with me. I tried both with Glade and GtkBuilder (creating the ...
1
vote
0answers
65 views
Bind filechooserbutton's path to gio.settings pygtk-glade
How can i bind the path from filechooserbutton to gio.settings?
Also can someone point me to gio.settings's documentation? I can't find it.
I'm using pygtk and glade.
1
vote
2answers
435 views
Make new instance of main window, python gtk
I am fairly new to python and gtk and I am writing an app for the Ubuntu App Showdown using Quickly. I want to make a new instance of the main window when the user clicks on 'New'.
I have the button ...
3
votes
2answers
147 views
How do I stop a container box from expanding horizontally in Glade?
Currently, when my button's label gets more characters, its container boxes resize horizontally, and push away the other containers next to it. I don't want this behaviour.
How do I give my boxes a ...
1
vote
0answers
66 views
Gtk containers for a list of items
I am trying to create a task management app with Quickly/Glade, but have troubles finding the right containers to represent information on the screen.
Basically, which containers should I use in ...
2
votes
1answer
83 views
In development based on Quickly, why do codes start with “from gi.repository import Gtk”?
I am developing apps in Quickly. Default codes start with from gi.repository import Gtk. Why is it so and not simply import gtk for example?
The point is, a lot of tutorials, documentation and forums ...


