Re: [pygtk] Cell renderer repository?

2008-10-01 Thread Mitko Haralanov
itself was a text renderer. Looking that the pygtk reference manual, this can be accomplished with gtk.TreeView.insert_column_with_data_func() HTH -- Mitko Haralanov == Computer programmers do it byte by byte

Re: [pygtk] gtk.IconView random segfault

2008-07-09 Thread Mitko Haralanov
)]) gtk.gdk.threads_leave () thread = FillListStore() thread.start() win.show_all() gtk.gdk.threads_enter () gtk.main() gtk.gdk.threads_leave () -- Mitko Haralanov == 67. Well, _my_ files were backed up. --Top 100 things you don't want the sysadmin to say

Re: [pygtk] gtk.IconView random segfault

2008-07-09 Thread Mitko Haralanov
since the entire gtk uses one master lock. Also, are you sure that it's the locks? Have you been able to load all 2500 images before without segfaults so you can measure the time? The alternative would be to not use a separate thread for loading the model. -- Mitko Haralanov

Re: [pygtk] Entry dir autocompletion

2008-07-01 Thread Mitko Haralanov
) liststore = gtk.ListStore (gobject.TYPE_STRING) completion.set_model (liststore) completion.set_text_column (0) win.add (entry) entry.connect (changed, entry_changed, completion) win.connect (delete-event, gtk.main_quit) win.show_all () gtk.main () -- Mitko Haralanov

Re: [pygtk] Entry dir autocompletion

2008-06-30 Thread Mitko Haralanov
+os.sep+file) use 'matches' as completion list -- Mitko Haralanov == This is an unauthorized cybernetic announcement. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] Scrolling gtk.Viewport to a specific location

2008-06-16 Thread Mitko Haralanov
to scroll it by so the correct child is in view? Thanks for the help? -- Mitko Haralanov == Professor: No fair! You changed the outcome by measuring it. ___ pygtk mailing list pygtk@daa.com.au http

[pygtk] Getting configure_event on widgets in notebook pages

2008-05-30 Thread Mitko Haralanov
hand, I click on every one of the notebook pages, each of the graphing widgets received their configure_event and all is good. Is there a way that I can cause the configure_event to be sent without requiring the user to click on each of the notebook pages? Thanx -- Mitko Haralanov

Re: [pygtk] getting actual size of widget

2008-05-27 Thread Mitko Haralanov
On Thu, 22 May 2008 14:49:12 -0700 Mitko Haralanov [EMAIL PROTECTED] wrote: What I have is a main application window which contains a notebook. Each of the notebook pages contains a table. When the main window is resized, the notebook (and the tables on the pages) get resized. I would like

[pygtk] getting actual size of widget

2008-05-22 Thread Mitko Haralanov
to be able to find the actual width and height of the table in the GtkNotebook page. I have tried using GtkWidget.get_allocation() but that returns the same number regardless of how much I resize the main window. Any advice is appreciated. Thank you -- Mitko Haralanov

[pygtk] Checking version of PyGTK from withing Python

2008-05-19 Thread Mitko Haralanov
Is there a way to check the version of PyGTK from within my Python program? I know of pygtk.require() but that returns False for anything higher then 2.0, even though I have pygtk-2.12 installed. -- Mitko Haralanov

Re: [pygtk] Checking version of PyGTK from withing Python

2008-05-19 Thread Mitko Haralanov
? Defined constants? I can't find them defined anywhere -- Mitko Haralanov == Niblonian: They travel from world to world making everyone stupid in order to wipe out all thought in the universe. Leela: Wipe out all thought? My God, they're like flying

[pygtk] gobject.timeout_add timeout recalculation

2008-05-15 Thread Mitko Haralanov
/returns. I guess, I could add a new timeout from within my timeout function and have it [the timeout function] return False (so the old timeout is destroyed) but I am thinking that there has to be a better way to do this. I appreciate any advice on the matter. -- Mitko Haralanov

Re: [pygtk] gobject.timeout_add timeout recalculation

2008-05-15 Thread Mitko Haralanov
the callback returning at and callback called at is not 20 seconds but 10 seconds (20 second timeout - 10 second callback runtime). -- Mitko Haralanov == A programming language is low level when its programs require attention to the irrelevant

[pygtk] Contant height of GtkProgressBar

2008-05-09 Thread Mitko Haralanov
there isn't. This causes re-drawing of the application and is really annoying. Is there a way that I can prevent this from happening, either by changing the font used by the progress bar or by having the widget height be calculated in a permanent way? Thanx -- Mitko Haralanov

Re: [pygtk] (FileChooserDialog) Save-Overwrite

2008-05-07 Thread Mitko Haralanov
connection the dialog's confirm-overwrite signal before you run the dialog. If you look at the pygtk documentation for gtk.FileChooser, you'll see an example of how to use the confirm-overwrite signal. -- Mitko Haralanov == Who would have though hell would really

Re: [pygtk] (FileChooserDialog) Save-Overwrite

2008-05-07 Thread Mitko Haralanov
get_uri() or get_filename(). and another question: the overwrite windows appears behind the filechooserdialog. is there any way to set that window on top/in front of all windows?? Hmm... don't really know why that's happening. -- Mitko Haralanov == 9

Re: [pygtk] python-gtkhtml2 docs

2008-04-25 Thread Mitko Haralanov
On Thu, 24 Apr 2008 13:09:40 -0700 Mitko Haralanov [EMAIL PROTECTED] wrote: Hi, does anyone know of any useful documentation, API, turorials, examples of python-gtkhtml2. I can't seem to find anything useful. Alright, I've been able to find enough information to get a very simple usage

[pygtk] python-gtkhtml2 docs

2008-04-24 Thread Mitko Haralanov
Hi, does anyone know of any useful documentation, API, turorials, examples of python-gtkhtml2. I can't seem to find anything useful. Thanx -- Mitko Haralanov == panic(sun_82072_fd_inb: How did I get here?); 2.2.16 /usr/src/linux/include/asm-sparc

Re: [pygtk] Getting widget visibility

2008-04-23 Thread Mitko Haralanov
if syslog_frame.visible: AttributeError: 'gtk.Frame' object has no attribute 'visible' -- Mitko Haralanov == Usage: fortune -P [] -a [xsz] [Q: [file]] [rKe9] -v6[+] dataspec ... inputdir ___ pygtk mailing list

Re: [pygtk] Getting widget visibility

2008-04-23 Thread Mitko Haralanov
' -- Mitko Haralanov == I WILL NOT USE ABBREV. I WILL NOT USE ABBREV. I WILL NOT USE ABBREV. I WILL NOT USE ABBREV. Bart Simpson on chalkboard in episode 2F33 ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] Getting widget visibility

2008-04-23 Thread Mitko Haralanov
On Wed, 23 Apr 2008 13:23:22 -0400 John Ehresman [EMAIL PROTECTED] wrote: Try syslog_frame.props.visible That worked. Thank you. -- Mitko Haralanov == 43. If I knew it wasn't going to work, I would have tested it sooner. --Top 100 things

[pygtk] Getting widget visibility

2008-04-22 Thread Mitko Haralanov
What is the best way to get whether a widget is visible or not? According to the documentation, gtk.Widget has the 'visible' property which is Read-Write. However, gtk.Frame for example does not seem to inherit that property of gtk.Widget. Thanks for the help! -- Mitko Haralanov

Re: [pygtk] Passing user date to callbacks with libglade

2008-04-08 Thread Mitko Haralanov
On Thu, 3 Apr 2008 17:57:34 -0700 Mitko Haralanov [EMAIL PROTECTED] wrote: I can't seem to figure out how to pass user data to callbacks connected with libglade's signal_autoconnect. The documentation does not mention anything about it and all my searching has not come up with anything. I'd

Re: [pygtk] Doc/tutorial on creating custom widgets

2008-04-04 Thread Mitko Haralanov
a custom clicked handler that gets the coordinates of the mouse when a click occurs, if they are within the frame of the checkbutton, act on the checkbutton, otherwise call the clicked callback. I guess, there is a lot more that I need to learn... -- Mitko Haralanov

[pygtk] Doc/tutorial on creating custom widgets

2008-04-03 Thread Mitko Haralanov
is this one page: http://www.pygtk.org/articles/writing-a-custom-widget-using-pygtk/writing-a-custom-widget-using-pygtk.htm but it seems that the information on it is not enough to get me going. Can anyone recommend any docs that could help me? Thanks for the help! -- Mitko Haralanov

[pygtk] Passing user date to callbacks with libglade

2008-04-03 Thread Mitko Haralanov
I can't seem to figure out how to pass user data to callbacks connected with libglade's signal_autoconnect. The documentation does not mention anything about it and all my searching has not come up with anything. I'd appreciate it if someone could shed some light on the subject? -- Mitko

Re: [pygtk] Increasing memory usage of GtkTreeView/GtkTreeModel

2008-03-20 Thread Mitko Haralanov
On Tue, 18 Mar 2008 13:31:19 -0700 Mitko Haralanov [EMAIL PROTECTED] wrote: I am pretty sure that there is something I am missing because such a huge memory leak in GTK would have been caught. Any ideas? Hi, I am still trying to figure out why the memory usage of my app keeps climbing and I

Re: [pygtk] Increasing memory usage of GtkTreeView/GtkTreeModel

2008-03-20 Thread Mitko Haralanov
, so stuck. Well, back to the drawing board. -- Mitko Haralanov == Leela: You buy one pound of underwear and you're on their list forever. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman

[pygtk] Increasing memory usage of GtkTreeView/GtkTreeModel

2008-03-18 Thread Mitko Haralanov
would have been caught. Any ideas? -- Mitko Haralanov == Leela: Bender, maybe you can interface with the Femputer and reprogram it to let them go. Bender: Maybe you can interface with my ass... by biting

[pygtk] Apply button behavior with GtkDialog

2008-02-27 Thread Mitko Haralanov
. This makes sense since the run() method returned but the question that I have is how do I make the GtkDialog responsive again? Calling the dialogs' run() method doesn't work and I don't want to destoy and re-create it. -- Mitko Haralanov [EMAIL PROTECTED] Senior

[pygtk] Dynamically adding glade widgets?

2008-02-27 Thread Mitko Haralanov
to the original one) would be packed at the end of the HBox. Can this be done using some glade trick or do I have to build the tree of widgets in the Python clicked signal handler? -- Mitko Haralanov [EMAIL PROTECTED] Senior Software Engineer