There is an easy solution:
import gobject
liststore = gtk.ListStore(str, gobject.TYPE_INT64)
Not nice, because it doesn't work with long, but working.
Cheers,
Volker
Original-Nachricht
Datum: Thu, 1 Mar 2007 13:28:50 -0500
Von: "Zach Tibbitts" <[EMAIL PROTECTED]>
An: pygtk@d
Your problem is that the drawing events aren't being processed because
you are busy making thumbnails, what you want to do is include a
while gtk.events_pending():
gtk.main_iteration(False)
in your thumbnail loop. Check out the link below for more info.
http://live.gnome.org/PyGTK/FAQ/SignalHa
Hello all!
I don't know if it's a good idea writing an image viewer in pygtk for
performance motive, but I'd like it at least for personal use.
The core function is this:
def Make_Thumbnails(self,event):
i=0
for infile in self.list:
pixbuf = gtk.gdk.pixbuf_new_from_fil
This may be sort of a long-winded post, so please bear with me.
Consider the following code:
import gtk
window = gtk.Window()
treeview = gtk.TreeView()
liststore = gtk.ListStore(str, long)
treeview.set_model(liststore)
treeview.append_column(gtk.TreeViewColumn("Name", gtk.CellRendererText(),
te
On Wed, 2007-02-28 at 20:43 -0700, Jeffrey Barish wrote:
> Is there a way to apportion space when resizing a box? For example, suppose
> that you have two widgets in a hbox. Is there a way to specify that one
> should get 1/3 of the available width and the other 2/3? I'm looking for
> something
Hi,
After installing SCIM (and UIM and m17n lib), I somehow get a more sensible
Greek mapping in GTK applications - Thunderbird doesn't see that though.
So more or less my problem is solved, though I don't know exactly why :)
Greetings,
Felix
___
pyg
Hi,
Is there an easy way to program an X input method using Python and what options
exist to enter classical Greek? (I'm using Ubuntu 6.10 x86, soon upgrading to
the 7.04 preview.)
The rest is just details:
I'm looking for a decent way to enter classical Greek (Greek with three accents and b
def response(widget, response_id):
if response_id != gtk.RESPONSE_APPLY:
# gtk.main_quit()
pass
else:
# i=0
#
On Wed, 2007-02-28 at 20:43 -0700, Jeffrey Barish wrote:
> Is there a way to apportion space when resizing a box? For example, suppose
> that you have two widgets in a hbox. Is there a way to specify that one
> should get 1/3 of the available width and the other 2/3? I'm looking for
> something
2007/3/1, Xi Chen <[EMAIL PROTECTED]>:
[snip]
but it doesn't work for me. It seems the entire application is "dead" once
that big method starts, I couldn't call progress bar update during it's
running.
Any comment is welcome, I'd be very happy if it could help.
have you already seen this FAQ?
Hi there,
I'm developing some applications for nokia 770. I have a time consuming
method which takes roughly tens of seconds, and don't know the accurate
progress for it coz it's a method from third party package. Now I want to
add a progress bar to make user interface more friendly but the proble
Hi there,
I'm quite desperate, I used glade3 to create a dialog with a treeview in it to
show addresse of companies. It works fine, for I can read the data from the db
and fill them into the model. Then I assign the model to the treeview of the
glade3 dialog.
That also works, but there are some
12 matches
Mail list logo