[pygtk] Populate Glade combobox in Python-script

2008-04-16 Thread Timo
I made a GUI with Glade, but since Glade freezes when trying to enter items to a combobox, I want to try it through my Python-script. But what is the best/easiest way to do this? Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au

[pygtk] Sync 2 widgets

2008-04-19 Thread Timo
I have a checkbox in my program (made with Glade). I also have a tray-icon which pops-up a menu that contains a checkbox too. Is it possible that if I click the checkbox in my program, the checkbox in the traymenu is also toggled? And the other way around too ofcourse. Timo

[pygtk] Using multiple dialog boxes

2008-06-11 Thread Timo
? Hope this explanation makes sense. Greets, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] Using multiple dialog boxes

2008-06-12 Thread Timo
. On Wednesday 11 June 2008 14:42:59 Timo wrote: Hello all, I'm writing a program that has 3 dialog boxes, 1 main which is the main window and runs on startup. Then I have 2 other that have to show when the appropriat button is pressed. I made these 3 windows in Glade. Now, since my program

Re: [pygtk] gtk.set_state question. Change button state

2008-06-16 Thread Timo
Hey, try widget.set_sensitive(0) to disable a widget and widget.set_sensitive(1) to enable a widget. Timo [EMAIL PROTECTED] schreef: Hi group, I desable a button with button.set_state(gtk.STATE_INSENSITIVE) in one procedure. In other I need enable it, but a simple button.set_state

[pygtk] Entry dir autocompletion

2008-06-28 Thread Timo
Hello, I want autocompletion in my gtk.entry. I found a lot of info, but all for autocompletion of an existing list and stuff. What I want is that it completes the path that I'm typing. So if I type /ho it should complete with /home/, and so on. How can this be done? Greets, Timo

[pygtk] Min and max values of multiple spinbuttons

2008-08-17 Thread Timo
it reaches the vlaue (or value -1) of spinbutton 2 and so on? Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Treeview/ListStore and row_activated()

2008-09-27 Thread Timo
Hello, in my program I have a Treeview with a ListStore. I want to update a lable according to the row that is selected, and it works with row_activated(). The problem is that it needs to be double clicked. Is there a way that the program can see if the row selection has been changed with one

[pygtk] Downloading a file without locking the GUI

2008-09-30 Thread Timo
I want to download a file by pressing a button in my GUI, all works so that's okay. Offcourse my GUI locks up during the download. I tried some things like writing a thread and using gobject.idle_add. But none of these worked. Anyone can point me out to some kind of example or tutorial? Thanks.

Re: [pygtk] Downloading a file without locking the GUI

2008-10-01 Thread Timo
Thomas Guettler schreef: Timo schrieb: I want to download a file by pressing a button in my GUI, all works so that's okay. Offcourse my GUI locks up during the download. I tried some things like writing a thread and using gobject.idle_add. But none of these worked. Anyone can point me out

Re: [pygtk] Downloading a file without locking the GUI

2008-10-04 Thread Timo
that I use 1.x so the programming model, or just names, might have changed in 2.x. If I'm correct, it's gtk.main_iteration() now. Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

[pygtk] gtk.MessageDialog doesn't work on windows

2008-10-23 Thread Timo
() errordlg.destroy() So I call errorDlg() when there is an error. On Linux this works perfectly, but on windows the program just hangs. This is the first time I try to program under windows, so maybe it's obvious, and everything else seems to work. Greets, Timo

Re: [pygtk] gtk.MessageDialog doesn't work on windows

2008-10-23 Thread Timo
Frédéric schreef: Le 23/10/2008, Timo [EMAIL PROTECTED] a écrit: def errorDlg(string): s = An error occured during this operation! errordlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, message_format=s, buttons=gtk.BUTTONS_OK) errordlg.format_secondary_text(string

[pygtk] Adding progressbar into a liststore

2008-11-02 Thread Timo
property `text' of type `gchararray' from value of type `PyObject' There is a row in the treeview, cause I can select one line, but nothing is in it. Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read

Re: [pygtk] Border in gtktreeview

2008-12-04 Thread Timo
Ángel Alonso schreef: Hi, i want to put a border in my gtktreeview but i doesn't find the function to do this. Anyone can help me please? I doesn't use glade, only pygtk. You can put your treeview in a viewport and then add a border to the viewport. Thanks

Re: [pygtk] hide on delete_event()

2008-12-05 Thread Timo
Peyman schreef: Hello I am new to this mailing list. Originally I was posting to the glade mailing list My question is a simple one, I want my window to hide when I close it (by clicking 'x'). I have browsed the web and the answer appears to be def

[pygtk] Limit lines of textview help/doc format

2009-02-16 Thread Timo
Hi all, 2 questions: I have a small textview that I want to be limited to 4 lines of text. So the user can't type more than 4 lines. Is that possible? Second, I want some sort of help function in my application. Well, just some little tips and explanation on some things. I thought of Yelp,

Re: [pygtk] Inserting items into ComboBox

2009-03-03 Thread Timo
Johannes Bauer schreef: Walter Leibbrandt schrieb: The *_text() methods are only applicable if the ComboBox was created with gtk.combo_box_new_text() or gtk.combo_box_entry_new_text(). If the ComboBox was created in another way (such as in Glade), you have to initialize it yourself:

Re: [pygtk] Inserting items into ComboBox

2009-03-06 Thread Timo
Walter Leibbrandt schreef: Johannes Bauer wrote: Timo schrieb: for item in [foo, bar]: combobox.get_model().append([item]) Apparently after entering something in Glade, the liststore etc are generated. And by removing these items, it keeps these. Sadly, my version of Glade

Re: [pygtk] Inserting items into ComboBox

2009-03-06 Thread Timo
Johannes Bauer schreef: Walter Leibbrandt schrieb: And so I learn something new! On a hunch, I compared a Glade file with an empty (unaltered) combo box and a combo box with its Items field changed. I put the changed in quotes, because what I did was add a character and delete it again,

[pygtk] Sorting dates in a liststore

2009-03-09 Thread Timo
In my program, the user can enter a date in a entry (and some other data too) and it'll append in a liststore/treeview. I'm having problems sorting this date column. Since notations of dates are different around the world ( dd/mm/, mm/dd/yy, dd-mm/yy, etc.), how can this be done? Do I have

[pygtk] Calendar popup under an entry

2009-03-21 Thread Timo
Hello, I would like to have a gtk.Calendar to popup under a gtk.Entry as soon as the user clicks on the entry. So I use the focus-in-event to capture when the user clicks in the entry. But I can't seem to find a way to popup a calendar. Timo ___ pygtk

Re: [pygtk] libglade bug?

2009-05-04 Thread Timo
Rob Brown-Bayliss schreef: Hi, I have this code being called every few minutes by a gkt timeout function: You can try to put this in your __init__() self.label_checkbutton = self.wtree.get_widget(label_checkbutton) Then you don't need to get the widget everytime and it cannot fail. print

[pygtk] Printing: how to begin?

2009-05-11 Thread Timo
in the right direction. And ofcourse, it has to be cross-platform. Thanks, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Printing: how to begin?

2009-05-13 Thread Timo
Stephen George schreef: Timo wrote: Hey everybody, My program has some sort of pedigree Does this mean something that looks like a hierarchical chart? Yes indeed. I don't know the complexity your are taking about, or the effect you are after. It should be pretty simple. I need some info

Re: [pygtk] Printing: how to begin?

2009-05-13 Thread Timo
Rob Brown-Bayliss schreef: On Mon, 2009-05-11 at 19:38 +0200, Timo wrote: Hey everybody, My program has some sort of pedigree and I want the user to be able to print this out. You could try report lab, a pdf generator lib for python, I tried it a couple of months ago for something

Re: [pygtk] Callbacks

2009-07-27 Thread Timo
Peyman schreef: Hi, a while back I inquired about blocking signals, and we came to the conclusion that via glade there is no way to get a hold of the handler IDs, so we had to use handler_block_by_func(). At the time handler_block_by_func() didn't even work for me under python. I have

Re: [pygtk] CellRenderer editable on double-click

2009-08-15 Thread Timo
clicked on treeview button-press-event is inherited from gtk.Widget. Works fine in my program. Timo Maybe you could define your own widget that inherits from both gtk.Button and gtk.TreeView so you can get the clicked signal. Then you would have to use something like

Re: [pygtk] Quickly open and colse a windows due to a .hide() at start

2009-09-03 Thread Timo
the Visible option to False in the Glade file (it's in the common-tab I think). So the window isn't shown at program start and you can do a .show() when you need it. Timo In Ubuntu with gnome, (rox+xfce)... no problem! But when I test it in debian Lenny with official repos, so I ask me

Re: [pygtk] Problem addiing link to gtk-Label

2009-09-29 Thread Timo
Why not using a linkbutton instead of a label? http://www.pygtk.org/docs/pygtk/class-gtklinkbutton.html Timo ganesh gajare schreef: hi all, I am creating application using glade. In which i have to add link to the gtk.Label. Like, when i clicked on the label it should open that link

Re: [pygtk] Stock Icons with no Image

2009-11-04 Thread Timo
Search a bit in gconf-editor. There is a key you can set back to True to let the stock icons show. Timo Timothy Ulusoy schreef: Then this is a case of it's not a bug, it's a feature! Is there any document relating to this decision of the developers, that you can direct me to? Thanks

Re: [pygtk] Saving and reading images from database

2009-11-14 Thread Timo
Frédéric Grollier schreef: Le vendredi 13 novembre 2009 à 15:15 +0100, Timo List a écrit : My program uses the SQLite database. The database holds some information about persons and I want to add a picture for each person. Not the path to the file, but the actual image so that the image

Re: [pygtk] ComboBox problem

2010-01-11 Thread Timo
don't maintain it anymore, I never searched for a solution. What does work is clicking on the left top or bottom corner of the combobox, then the popup list will stay. I think this is a theme problem, but am not sure. Cheers, Timo I don't see a setting for this anywhere. I want the Linux

Re: [pygtk] PyGtk on Windows (SOLVED)

2010-01-21 Thread Timo
+-2.16 release will be sufficient for their needs. Hello John, I saw you saying that gtk+-2.18 is broken on Windows a couple of times. But I used it about 2-3 months ago for my application, and everything worked ok. BTW thanks for the work, I will test it soon too. Cheers, Timo John

Re: [pygtk] PyGtk on Windows (SOLVED)

2010-01-22 Thread Timo
. It was with GTK+ 2.18.3 and PyGTK 2.12.1 (both the latest at that time). It worked as it should on the several Windows XP it was tested on. Timo John ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ

Re: [pygtk] set current tab in pygtk

2010-02-13 Thread Timo
, Timo Thank you. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/ ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] ...on windows

2010-02-18 Thread Timo
and a little explanation on how to install on Windows. http://www.pygtk.org/downloads.html It is actually really simple, no compiling of your own. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK

[pygtk] Custom icon on toolbar

2010-02-28 Thread Timo
), ...) action_group = gtk.ActionGroup(MainWindowActions) action_group.add_actions(entries) Works like a charm for everything in my tool and menubar, but now I would like to specify a custom image/icon instead of a standard stock icon. How should this be done? Cheers, Timo

[pygtk] Getting available printers

2010-03-07 Thread Timo
and saves this in my preferences dialog. So I only need the printer choice combo. I was thinking about looking through the source before asking here, but I don't even know where to start. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] Resizable rectangles, where to start?

2010-03-07 Thread Timo
. It is written in C and GTK+ I think, so maybe you can get some ideas out of it. It has an rectangle that holds the info which you can drag and drop and is resizable. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo

Re: [pygtk] Help with box layout

2010-03-15 Thread Timo
. Uh, I think I see. So the only way to center something in a box is to add an empty element on both sides with expand=True? Try using a gtk.HButtonBox instead (see the reference manual for info). This is excatly what you need to layout buttons. Cheers, Timo

[pygtk] Moving blocks on drawing area

2010-04-11 Thread Timo
on a drawing area. But is it then possible for the user to drag this around and for me to get the position? Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] GLADE:how to use progress bar to show progress of a process

2010-04-25 Thread Timo
information and examples. Cheers, Timo [0] http://faq.pygtk.org/index.py?req=showfile=faq23.020.htp [1] http://www.pygtk.org/pygtk2tutorial/sec-ProgressBars.html [2] http://www.pygtk.org/docs/pygtk/class-gtkprogressbar.html Waiting eagerly for a reply Regards Varnika Tewari

Re: [pygtk] How to check when OCRing is finished

2010-05-03 Thread Timo
resolution image) but then the OCRing time varies for different engines and different images.Some take less and some take more. That ofcourse is very bad, since you are letting your users wait for nothing. Cheers, Timo Any solutions? Regards Varnika Tewari (UMIT,SNDT University

Re: [pygtk] clicked button

2010-05-06 Thread Timo
): if widget.get_label() == 0: widget.set_label(1) else: widget.set_label(0) Or does it need to be increased every time? def button_pressed(widget): new_val = int(widget.get_label()) + 1 widget.set_label(str(new_val)) Cheers, Timo Can anyone help me

Re: [pygtk] Retrieve Iter before iter selected in a treeview

2010-05-07 Thread Timo
to the changed signal of the gtk.TreeSelection, and cal get_selected() there. This is handy most of the times. Cheers, Timo It's a stupid question, but i can't find a solution. Thanks

Re: [pygtk] Drag and Drop on Windows

2010-05-13 Thread Timo
application with both GTK+ and PyGTK. Run them and see if drag and drop works in one of the two. Cheers, Timo -- Thanks, Brad Landis ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ

Re: [pygtk] Import problem for PyGtk on Windows

2010-05-20 Thread Timo
on http://www.pygtk.org/downloads.html ? Cheers, Timo H:\python ActivePython 2.6.5.12 (ActiveState Software Inc.) based on Python 2.6.5 (r265:79063, Mar 20 2010, 14:22:52) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import pygtk

Re: [pygtk] Use which widget to display dictionary?

2010-05-25 Thread Timo
a bit more code than with a gtk.Label, but not much. Cheers, Timo Any ideas are welcome. Thanks a lot Cornelius ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org

Re: [pygtk] ComboBoxEntry set_text

2010-06-02 Thread Timo
to the gtk.Entry directly? Try this: comboboxentry.child.set_text('testing') Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] little icon trouble

2010-06-03 Thread Timo
of the latest PyGTK versions and the docs aren't updated yet. You could also look at other PyGTK mediaplayers sourcecode to see how they do it. Cheers, Timo thanks --- Pasquale Boemio boemianraps...@gmail.com pa.boe...@studenti.unina.it MSN Skype Twitter boemianraps...@yahoo.com boemianrapsodi

Re: [pygtk] Which is the active radiobutton?

2010-06-03 Thread Timo
, Timo Tried print radio.get_label() and that failed as there is no attribute called label. Any help appreciated. Even a reference. Thanks ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK

Re: [pygtk] getting desktop path

2010-06-03 Thread Timo
-utils installed though, so the following works: $ xdg-user-dir DESKTOP /home/timo/Bureaublad Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org

Re: [pygtk] How to show/hide gtk.Paned?

2010-06-05 Thread Timo
with widget.hide() and vpaned.remove(child). So if you have a notebook in the vpaned, you can do: notebook.hide() or: vpaned.remove(notebook) Cheers, Timo Thanks to whomever helps, Smartboy ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au

Re: [pygtk] Drawing and signals

2010-06-09 Thread Timo
on using Cairo. But if you do not like to write this all by yourself, someone else has done a pretty good job already here: http://notmyname.github.com/pygtkChart/ Cheers, Timo Thanks Jeenu ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] How to add extra Vbox fields

2010-06-20 Thread Timo
a VBox with lot's of rows in Glade. Cheers, Timo Lang Hurst wrote: I hope that I'm asking this in the right place. I created a UI in glade. It has a couple of Vboxes for information. The final box is filled with a TextView. In my program, I'm connecting to a database and pulling out

Re: [pygtk] Add a new widget on idle

2010-06-28 Thread Timo
a row of buttons. Cheers, Timo [0] http://www.pygtk.org/docs/pygtk/index.html [1] http://www.pygtk.org/pygtk2tutorial/index.html Regards This is the source code : #!/usr/bin/python import gtk def visibility_handler(window): visible = window.get_property(visible) if visible

Re: [pygtk] push huge array into liststore

2010-07-14 Thread Timo
in data: liststore.insert(0, [d]) treeview.set_model(liststore) treeview.thaw_child_notify() The disconnection of the model and remove the sort function gave great speed performance. But using insert() instead of append() helped too. Cheers, Timo Thanks a lot

Re: [pygtk] Need ToolButton to only be sensitive when TreeView has a selection

2010-08-31 Thread Timo
: self.apply_button.set_sensitive(False) else: self.apply_button.set_sensitive(True) Cheers, Timo Thanks guys! On Mon, Aug 30, 2010 at 5:33 PM, Robert Parkrbp...@exolucere.ca wrote: Hi guys, another simple one today. I have a button that acts upon selected items

Re: [pygtk] Tooltips on MenuItem and ui_manager

2010-09-08 Thread Timo
tooltips to the menuitems. See in-code for a working implementation. Note: this maybe can be easier, I just modified it from my code where I show a statusbar message when the mousepointer goes over the menuitems. Cheers, Timo import gtk GENERAL_UI = ''' menubar name=Main menu action=File

Re: [pygtk] Tooltips on MenuItem and ui_manager

2010-09-08 Thread Timo
On 08-09-10 15:39, Alessandro Dentella wrote: On Wed, Sep 08, 2010 at 12:12:06PM +0200, Timo wrote: On 08-09-10 09:51, Alessandro Dentella wrote: here is the code that shows what I mean. The action 'Test' has a tooltip in the ToolButton and not in the meny entry: thanks in advance

Re: [pygtk] /tmp/cc3Crwaa.s: Assembler messages:

2010-09-16 Thread Timo
On 15-09-10 21:42, vinay kapse wrote: hi, can anyone tell me why i am getting this error when in make pygtk-2.10.4 I'm no PyGTK developer, but why aren't you compiling the latest version instead of the old 2.10? Cheers, Timo [r...@localhost pygtk-2.10.4]# make make all-recursive make[1

Re: [pygtk] Windows installer components

2010-09-25 Thread Timo
:-( - not in the all-in-one bundles: - pixman, gettext-runtime, pkg-config, winiconv, proxy-libintl, GNU libiconv As far as I know, I always used the GTK bundle without optional packages. Cheers, TImo On 9/24/2010 11:14 PM, John Stowers wrote: So for each version of python that we decided

[pygtk] PyGObject timeout_add error

2010-10-16 Thread Timo
and PyGobject 2.21.5 Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] catching all keyboard/mouse events

2010-11-20 Thread Timo
/devel/pygtk/stable/class-gdkwindow.html Maybe this post will help you a bit: http://www.mail-archive.com/pygtk@daa.com.au/msg19101.html Cheers, Timo I can't find what signals are valid for a gtk.gdk.Window. And even if I could, I still need it to with the 'motion-notify-event'. Thanks for any

Re: [pygtk] Deselecting the text from an Entry the first time it appears.

2010-11-21 Thread Timo
Cheers, Timo Any hint? Thanks! Here is my code: import gtk class PyApp(gtk.Window): def __init__(self): super(PyApp, self).__init__() self.set_title(Simple drawing) self.resize(230, 150) self.set_position(gtk.WIN_POS_CENTER) self.connect(destroy

Re: [pygtk] Add tool tips to cells in a liststore.

2010-11-22 Thread Timo
() set_tooltip_cell() set_tooltip_row() http://library.gnome.org/devel/pygtk/stable/class-gtktreeview.html Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] UImanager menu and popup

2010-11-27 Thread Timo
to have this PersonMenu also show up as I right click on a row in a treeview, this to avoid maintaining 2 menus when I add/remove/edit entries. Is it possible? Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo

Re: [pygtk] CheckBbox look of inconsistent state in late gtk releases

2010-12-02 Thread Timo
sign that I consider much more explicit. Is there a way to use that mark again in new checkbox? This is a theme issue. I use Ubuntu 10.10 with the Ambiance theme, and after switching to Clearlooks, I get the sign back in an inconsistent checkbutton. Cheers, Timo thanks sandro *:-) [1] http

Re: [pygtk] ComboBox Unresponsive with Custom CellRenderer

2010-12-23 Thread Timo
. It will process any pending gtk events. while gtk.events_pending() gtk.main_iteration() Cheers, Timo I have implemented caching, so that after it loads the first time, it will load from a single image from memory or disk, but the first time it loads can take 2-4 seconds per cell

Re: [pygtk] how to add to a scrolledwindow?

2011-01-02 Thread Timo
', addbutton) Cheers, Timo vbox.pack_start(b1) b2 = gtk.Button('bbb') vbox.pack_start(b2) window.show_all() gtk.main() I click 'aaa' but no 'extra' appears. The actual application starts with a list of book authors as button labels. Clicking on an author should insert

Re: [pygtk] Glade 3 / Builder / Combobox

2011-01-26 Thread Timo
and gfloat for float. Cheers, Timo What I want is to simply create some combo boxes that contain a value descripton, but only display the description, so I can retrieve the selected value. Does anyone have a current HOWTO / FAQ link addressing this issue? Any tips would be appreciated

Re: [pygtk] treestore problems

2011-01-31 Thread Timo
have a single selection treeview and use get_selected(), because that will return an iter of its own. model, rowiter = selection.get_selected() data = model.get_value(rowiter, 1) Cheers, Timo which I feel should print thesome data for each selected row, but what actually comes out seems largely

Re: [pygtk] gtk runtime bundled with py2exe app

2011-02-01 Thread Timo
On 01-02-11 03:55, smo wrote: hi is it possible to bundle the gtk runtime in a py2exe script ? Yes, I do it for my program too! You should read the following page [1] or just use Google for some very useful blogposts. Cheers, Timo [1] http://www.py2exe.org/index.cgi/Py2exeAndPyGTK i don

Re: [pygtk] Default buttons in many notebook pages

2011-02-07 Thread Timo
better idea is welcome. I would do something similar, because there can only be one default button for each window, this looks like a valid solution. Cheers, Timo Regards Udo Spallek www.tryton.org ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] Building multi-threaded UI in pygtk

2011-02-07 Thread Timo
. Here is the link to the code https://gist.github.com/73a6d36061efa7265f93 I don't think anyone will go through 800 lines of code to see where it goes wrong. See section 20 of the FAQ [1] which has some very helpful tips on PyGTK and threading. Cheers, Timo [1] http://faq.pygtk.org/index.py?req

Re: [pygtk] Tweaking GTK InfoBar properties

2011-02-09 Thread Timo
widgets in it. You will have to add a gtk.Label yourself to the infobar. Cheers, Timo and I'm not crazy about hard-coding indices of undocumented components into my app). Is there are robust way to do this? — Jason ___ pygtk mailing list pygtk

Re: [pygtk] select multiple folders/ directories

2011-02-14 Thread Timo
On 13-01-11 02:12, Sujay wrote: Hi, Hello, you're probably on the wrong mailinglist. I'm not familiar with the widgets you descibe. Cheers, Timo I'm currently using tkFileDialog.askdirectory() to select a single directory. I would like to be able to select multiple directories

Re: [pygtk] Glade 3 / Builder / Combobox

2011-02-15 Thread Timo
On 26-01-11 12:20, Adam Tauno Williams wrote: On Wed, 2011-01-26 at 12:02 +0100, Timo wrote: On 26-01-11 03:56, Adam Tauno Williams wrote: Please forgive this question if the answer is obvious but I've searched and not had any luck. Also, having done this frequently in C#/.NET I could just

Re: [pygtk] Filtered Sortable

2011-02-18 Thread Timo
: data1 = model.get_value(iter1, 2) data2 = model.get_value(iter2, 2) return cmp(data1, data2) This will sort column 2 if the values in column 3 are equal. The key part here is the built-in cmp() function that will return -1, 0 or 1, which is what we need. Cheers, Timo [1] http

Re: [pygtk] How to make a transform the window type of glade object into a WINDOW_CHILD

2011-02-25 Thread Timo
the child of the window and add this child to the notebook? So if you have a window with a vbox for example which holds the editor widgets, do this in your code: vbox = builder.get_object('vboxeditor') vbox.unparent() notebook.append_page(vbox) Cheers, Timo

Re: [pygtk] Need to control cursor position in selected text of gtk.Entry

2011-02-26 Thread Timo
be of use. I never used it before though. Cheers, Timo [0] http://library.gnome.org/devel/pygtk/stable/class-gtkentry.html#method-gtkentry--set-cursor-hadjustment Thanks, Gary ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman

Re: [pygtk] PyGTK documentation

2011-03-01 Thread Timo
don't know what Drupal is. Do I really need to install it to view the documentation? You could always try this page instead, it's the one I use: http://library.gnome.org/devel/pygtk/stable/ Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] Using draw_rectangle with a fill colour

2011-03-01 Thread Timo
() gc.foreground = gtk.gdk.color_parse(orange) Try the following line instead: gc.set_foreground(self.get_colormap().alloc_color(#FF8000)) Cheers, Timo gc.fill = gtk.gdk.SOLID drawable.draw_rectangle(gc, True, x=100, y=100, width=10, height=50) def main

Re: [pygtk] Left justifying label text

2011-03-06 Thread Timo
nothing, because you call the default value. * It wouldn't work anyway because you only have one line. * The solution is to use set_alignment() So replace label.set_justify(gtk.JUSTIFY_LEFT) with label.set_alignment(0, .5) and it should work. Cheers, Timo [1] http://library.gnome.org

Re: [pygtk] floating point precision

2011-03-07 Thread Timo
would like to know the same. Here is a simple testcase which demonstrates the problem. Cheers, Timo import gtk MYFLOAT = 12.3456 def main(): win = gtk.Window() win.resize(300, 200) win.connect('delete-event', gtk.main_quit) liststore = gtk.ListStore(float, float) treeview

Re: [pygtk] What happened to PyGTK website?

2011-03-07 Thread Timo
On 28-02-11 16:07, Karthikeyan wrote: What happened to PyGTK website : http://pygtk.org ? When I open it, I see a Drupal page. Works fine here. Try clearing your cache, cookies etc. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] Grid of Clickable Images

2011-04-30 Thread Timo
and respond to single clicks on images. I guess this can be achieved by capturing the selection-changed event. That seems like the best choice to me too. Cheers, Timo [1] http://developer.gnome.org/pygtk/stable/class-gtkiconview.html [2] http://developer.gnome.org/pygtk/stable/class

Re: [pygtk] Translating Treeview column headers with gettext + gtkBuilder

2011-05-16 Thread Timo
to be translated. Cheers, Timo ... /object /child /object /child /object /child Here Key ID is not translated. I have no idea why; the msgstrings exist in the *.mo file, and 'gettext Key ID' returns the correct value. Any

Re: [pygtk] gio.Mount.get_default_location()

2011-06-01 Thread Timo
On 31-05-11 20:38, Leon Bogaert wrote: Hi Avi, Good guess :) I'm running Ubuntu 11.04 Weird, I'm running 11.04 as well, and I have no problems. No idea why it won't work for you though. Cheers, Timo leon@polly:~$ dpkg -l | grep gir | grep glib ii gir1.2-glib-2.0

Re: [pygtk] hide gtk warning

2011-06-01 Thread Timo
warnings module. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/ ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] gir1.2-nautilus-2.0

2011-06-26 Thread Timo
to a simple demo to understand how this binding work? (where to place the extension files and so on...) Your best bet will be the C manual for the Nautilus bindings. Well, I did/do so for all the bindings I use that use Gobject Introspection. Cheers, Timo Cheers

Re: [pygtk] pygtk2 to pygobject/introspection

2011-06-30 Thread Timo
On 30-06-11 14:12, Dieter Verfaillie wrote: In short, don't be afraid to get your hands dirty :) In response to this, I'm actually willing to help out, but... What skills are needed? Should I have some specific knowledge? And if I can help, where should I start? Cheers, Timo mvg, Dieter

Re: [pygtk] py2exe only support python2.5

2011-07-26 Thread Timo
: http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/ Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org

Re: [pygtk] which widget?

2011-08-03 Thread Timo
a look at gtksourceview. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/ ___ pygtk mailing list pygtk

Re: [pygtk] Activate row in TreeView with single click

2011-09-13 Thread Timo
, with: treeview.emit('row-activated') But you should probably have enough with the selection changed signal. Cheers, Timo [1] http://developer.gnome.org/pygtk/stable/class-gtktreeselection.html Thanks! ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au

Re: [pygtk] (no subject)

2011-09-25 Thread Timo
? This message should help: http://www.daa.com.au/pipermail/pygtk/2011-March/019562.html Maybe you could manage some things using custom rc styles if the above doesn't work. Cheers, Timo Kristen Eisenberg Billige Flüge Marketing GmbH Emanuelstr. 3, 10317 Berlin Deutschland Telefon: +49 (33

Re: [pygtk] expose event for Gtk.DrawingArea?

2011-10-01 Thread Timo
from GTK2 to GTK3 and lots of other usefull documents. Cheers, Timo [1] http://developer.gnome.org/gtk3/stable/ Greetings, Iñigo Serna ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] CellRendererProgress fill fraction

2011-10-03 Thread Timo
this: |##--| Looking at your example, I suspect you want a pulsing progressbar, one that moves from the left to right and back. Check the pulse() method of the gtk.ProgressBar in the reference and tutorial for info and examples. Cheers, Timo Thanks for your help

Re: [pygtk] progressreport with playbin and pygtk

2011-10-08 Thread Timo
On 08-10-11 17:29, laguillaumie sylvain wrote: hi Hello, you should probably ask your question on the gstreamer list. Cheers, Timo is it possible to use the progressreport without building my own pipeline but with playbin2 and pygtk ? second thing, when we try to do this for exemple

  1   2   >