Tagged Questions
0
votes
0answers
43 views
Can you name Ubuntu applications that were developed using Python, pyGtk, Glade? [closed]
I started using Python at a very basic level.
As a second step, I would like to develop Python software using pyGTK and Glade as GUI designer.
I found very easy to learn by examples and I think it ...
2
votes
2answers
47 views
Thread works only on gui events - pygtk
I am developing a multithreaded application in pygtk using quickly and stuck with threads. So I am experimenting with various possibilities and found out that my thread work only when I do something ...
2
votes
1answer
70 views
PyGTK TextBuffer adding Tags and reading text
As in topic I have TextView() and TextBuffer() added to it, I also have Tags created so when I select text and click button it will make text BOLD or something. Up to this point all works well, now I ...
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, ...
1
vote
1answer
86 views
Is there a auto-complete tag like control for quickly/pygtk?
I am making a todo like application with indicator support using glade/python/pygtk/glade. I am making a form to save a Todo item. Each todo will belong to 0 or more projects.
When a user enters a ...
0
votes
0answers
58 views
how to save a gtktextbuffer content in file
i tried to save sengtktextbuffer content in a file. my code seens working but i have a problem in file.
some characters are unreadable in outfile
outfile
my code:
def on_save_clicked(self, widget, ...
0
votes
1answer
100 views
How extract strings from a .ui file (glade) with gettext?
I'm trying to extract the strings from this file:
http://bazaar.launchpad.net/~gufw-developers/gui-ufw/gufw-13.04/view/head:/data/ui/add.ui
Which is the command for it?
This not works:
...
1
vote
1answer
130 views
Playing sounds in Python Quickly without any extra libs?
I was wondering is it possible to play sounds in Ubuntu using Quickly and Python without including any libs like pygame or pymedia or anything ?
Just the stock packages that come with Python ?
Thank ...
1
vote
0answers
15 views
Allowing only certain rows in gtk+ treeview to accept children
I have a gtk+ treeview with 2 columns in it "name" and "type". I want to only allow rows to accept children based on the value of the "type". So if the "type" column value is 0, it can then accept ...
1
vote
0answers
56 views
How to print with PYGTK on quickly
I am trying to make a program that can open save and print texts with Quickly, but I can't get the printing part to work.
In my code when you press the "printbutton" it opens a print dialog:
def ...
1
vote
2answers
212 views
Which database to use for quickly and pygtk
I'm writing application using quickly Pygtk and glade.
this application should have database connection (such as MySQL) for reading and writing data from the local or outsourcing machine \ server.
...
0
votes
1answer
71 views
Problem serialising TextBuffer
While trying to follow the serialisation instructions from this answer I encountered a few problems.
The following is supposed to serialise a TextArea's content to a string. The first two line ...
0
votes
1answer
51 views
Why is my Gtk.Notebook not fetching its label properly?
I am using this method to save a file:
def save(self):
file_data = ConfigParser.ConfigParser()
subjects_number = self.subjects.get_n_pages()
si = range(1, subjects_number)
for sn in ...
0
votes
1answer
54 views
Use MongoDB and PyMongo inside an PyGTK app
I am abort to make an Python app with Quickly.
The app need to store some data in an database,
To this I am planing to use MongoDB.
So my question is like this:
How can I make the py-app to auto ...
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
389 views
Multi-threading in application designed in quickly
I have a tree which I populate with a file list from my computer on the click of a button. While the program is populating the tree the whole GUI hangs.
Is there a way to populate the tree in another ...
1
vote
1answer
219 views
Can I execute an application built with Quickly (python - pygtk) on MS Windows?
I am working with QUICKLY, using Python and PyGtk. I know there is an option for packaging; so I can create a .DEB file. This is for Ubuntu.
I was reading about PyGTK and it seems that PyGtk runs on ...
3
votes
0answers
65 views
How do I provide arguments to mapped methods in quickly preferences dialog?
I'm using quickly on 11.04 and I'm trying to add a textbuffer object to the preferences dialog so that its contents is updated automatically to the couchdb. So in __init__.py I changed the dictionary ...
1
vote
3answers
190 views
Pygtk dialog and return id/info
i am writing an app with quickly-pygtk-glade and i want to show a dialog and get the return id...I used the run() method but if a close the dialog and reopen it i get an empty window and some errors! ...
0
votes
1answer
82 views
Problem with Gtk.Image
i am having a problem with a Gtk.Image. I use the set_from_file() function to add the image to the Gtk.Image but the image is not displayed! Instead the broken icon is...
The image exist and i can ...
0
votes
1answer
80 views
What is the schema XML file in the data/glib-2.0 folder of my Quickly application?
I created an Ubuntu application with Quickly, and I can see an XML file in the folder data/glib-2.0 of my project root and I am not exactly sure what this is for. The XML looks like this:
<?xml ...
1
vote
1answer
237 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
1answer
291 views
Get folder from file chooser button pygtk
i want to get the location of the folder that is selected by a filechooserbutton in pygtk... how can i do this?
i connect the current folder changed signal from filechooser but the signal is emitted ...
0
votes
1answer
106 views
Error when importing pynotify
When i add
import pynotify
and try to run my app i get
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' ...
0
votes
2answers
483 views
Python - access variable in another class
I have 1 main window and 1 dialog.
Now I need to access variable in main window from dialog.
For example in java we have 2 classes:
demo and
myclass
In my class I have following code:
public ...
0
votes
1answer
84 views
How do I programatically edit label widget in the runtime
How do I programatically edit label widget in the runtime , I am using quickly
I tried
self.title=builder.get_object("title")
for initialising and
def update_Label(self,url):
...
0
votes
1answer
74 views
Remove a Custom Dialog Windows (PyGTK + Quickly)
Do Quickly have a remove dialog command?
Like: quickly remove dialog <dialog-name>
4
votes
2answers
585 views
Creating widgets using GtkBuilder
I am using Glade to design a Box with widgets and then load these widgets into my UI at run-time. To create each Box with widgets at run-time, I create a new GtkBuilder, call add_from_string passing ...
1
vote
1answer
77 views
How can I open/show the default content-help-dialog with quickly?
If I create a Quickly-Project there is a default Menubar which shows the Help-Dialog(Contents - "index.page" from help/C - Folder). How can I manually show the Content-Help Dialog? There is no code in ...
2
votes
1answer
50 views
How do I make an amd64 version of my application?
I am here because I am able to successfully upload the i386 build of my program to launchpad, but I have no idea how to create a native 64-bit application. Your help would be greatly appreciated.
0
votes
0answers
155 views
How to set PyGtk toolbuttons label color?
I am just beginning learning Quickly and PyGtk,
after see this info-video on Ubuntu-develperment.
As in the video I am adding a toolbar to my glade-file,
then some buttons.
To style the toolbar for ...
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
1answer
46 views
Quickly/Glade autoadjust text position
In Quickly/Glade, is it possible to keep the text (well, labels) centered, so when I maximize my program's window, the text stays centered? It's probably something easy to do, but I have been unable ...
3
votes
1answer
236 views
How to apply gradient background to GtkWidget in GTK3?
Is it possible to use gradient as a background for generic GtkWidget?
Related question: How to change GtkWidget background in GTK3?
0
votes
1answer
174 views
Webview load specific URL (Quickly/Glade)
I was watching the Ubuntu Developer video about creating your own browser using webkit, but I was wondering if it would be possible to make webkit load a specific website. For instance, if I was to ...
1
vote
1answer
101 views
Quickly/Glade linking a button to notebook page
Hey everyone (boy I seem to be posting quite a bit), I have a question regarding Glade and Quickly. Is it possible to map a button to a notebook within the same program. Like say for instance I have a ...
0
votes
1answer
119 views
Opening a Window within an already open window (Quickly/Glade)
I have a question regarding window and button implementation. If I have a toolbar set up, and I have a button on it, is it possible to get it to open a window right within the program? I mean like ...
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 ...
3
votes
1answer
287 views
PyGTK: Opening Links in Default Web Browser
Is there a way to create a Gtk.Button("http://www.google.com"), when clicked will open the system default Web Browser using the label as the URL?
What I could do is...
import os
button = ...
0
votes
1answer
137 views
0
votes
1answer
194 views
How to hide a GTK window in Python before call or os.system
So, I'm depeloping a Python/GTK app which, after showing an assistant, it hides the assistant's window and runs an external app. The problem is that window.hide() doesn't works if, after the command, ...
1
vote
1answer
116 views
how to keep the app indicator menu visible after clicks?
I have a specific need in which I want app indicator menu item to respond to mouse click but menu should not disappear, for example when I click play in music menu, menu does not disappear, can i also ...
5
votes
1answer
326 views
How do I add a Notebook to a Box in a VBox?
I have created an empty box in Glade to add a Notebook to. The reason I am not adding the actual Notebook in Glade is because I hear that you cannot add pages to a Notebook made in Glade.
So, in ...
2
votes
1answer
70 views
Why changing signals causes NameErrors in a sane code? - PyGtk issue
I'm working on a very simple app for Ubuntu. I've asked a question on stackoverflow, and it seems that the issue I am having is caused by signals, not by the scope of variables, as I originally ...
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 ...
3
votes
1answer
159 views
Can't add page in a notebook
I am having some trouble adding a page to a Notebook widget. The error I get is this:
AttributeError: 'function' object has no attribute 'append_page'
I assume this means the object pages in the ...
4
votes
1answer
279 views
Quickly Application making it run on startup
I have a PyGtk application that I made using Quickly, and I would like to have it run on startup when installed. How would I go about doing this? I'm not sure if sticking the .desktop file in ...
4
votes
2answers
273 views
How to add sub menus in appindicators?
I am using this code to try to add submenus in appindicator
#!/usr/bin/env python
import gobject
import gtk
import appindicator
def clean_quit(w):
print "in quit"
gtk.main_quit()
if ...
1
vote
1answer
190 views
Display and edit text and images in a quickly app
I need to be able to display images and text (images resizable and text editable). I was thinking maybe a HTML type thing could do this. For a really bad example like how a word processor works. ...
