Re: [pygtk] Tkinter and pygtk side-by-side?

2004-05-24 Thread Thomas Mills Hinkle
when using pygtk with glade files, how do I close the existing window and open a new one in the same glade file? I'm not entirely sure I follow what you want to do, but assuming that you have a glade file with multiple windows and want to close one and open another... you just need to grab

Re: [pygtk] drag and drop types

2004-06-14 Thread Thomas Mills Hinkle
On Mon, 14 Jun 2004 02:49:00 -0700 John Finlay [EMAIL PROTECTED] wrote: Here's a small program that prints out the drag targets: ... That's exactly what I wanted -- thanks so much. Thanks for taking the time to reply so thoroughly and helpfully -- and so fast! ... to add the text targets to

[pygtk] trouble moving treeView selection

2004-06-25 Thread Thomas Mills Hinkle
I'm having trouble moving the treeView selection. Specifically, when I use move_up and move_down, the selection occasionally stops working. When it breaks, the widget continues to show my selection, but future calls that ask for it get no selection at all and I can't change the selection by

Re: [pygtk] trouble moving treeView selection

2004-06-26 Thread Thomas Mills Hinkle
On Fri, 25 Jun 2004 19:04:09 -0700 John Finlay [EMAIL PROTECTED] wrote: Doug Quale wrote: Thomas Mills Hinkle [EMAIL PROTECTED] writes: I'm having trouble moving the treeView selection. Specifically, when Iuse move_up and move_down, the selection occasionally stops working.When

Re: [pygtk] Segfault on TreeView Empty

2004-07-03 Thread Thomas Mills Hinkle
Have you tried reproducing it on other Unstable boxes? I've now reproduced it on another unstable box (powerpc Do you have a minimal (20-line) testcase so others can run and verify if the problem exists? To reproduce the problem, I tried creating a version of the basictreeview example from

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Thomas Mills Hinkle
On 21 Jul 2004 19:18:25 -0500 Doug Quale [EMAIL PROTECTED] wrote: I was imagining a simple system that required the application programmer to save the preferences and load them into the appropriate widgets by hand. This would be very tedious, but smarter mechanisms could be built on top of

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Thomas Mills Hinkle
On 21 Jul 2004 19:18:25 -0500 Doug Quale [EMAIL PROTECTED] wrote: I was imagining a simple system that required the application programmer to save the preferences and load them into the appropriate widgets by hand. This would be very tedious, but smarter mechanisms could be built on top of

[pygtk] Re: Modification to WidgetSaver.py

2004-07-25 Thread Thomas Mills Hinkle
On Fri, 23 Jul 2004 15:27:33 -0500 Skip Montanaro [EMAIL PROTECTED] wrote: I like the concept behind the WidgetSaver script Thomas Hinkle posted the other day. We're a Glade shop though, so I fear that adding the boilerplate necessary to hook up each widget of interest to the WidgetSaver

[pygtk] PyGTK reference, set_search_equal_func, set_search_column

2004-09-14 Thread Thomas Mills Hinkle
I recently used the treeview.set_search_equal_func(func) for the first time and found its behavior somewhat counterintuitive. The function you hand it needs to return false for a match and true for a non-match. It struck me that this would be worth adding to the pygtk reference entry for that

[pygtk] Using ListStores for popup menus (ala ComboBoxEntries)

2004-09-15 Thread Thomas Mills Hinkle
I'm planning to convert my app (http://grecipe-manager.sourceforge.net) to use the new ComboBoxEntry widgets soon. One reason this will be useful is that my app is already using the same lists for drop-down menus multiple times. Currently, I'm using popup menus in TreeViews as a hack since I

Re: [pygtk] Using ListStores for popup menus (ala ComboBoxEntries)

2004-09-18 Thread Thomas Mills Hinkle
On Wed, 15 Sep 2004 05:33:01 -0700 David M. Cook [EMAIL PROTECTED] wrote: On Wed, Sep 15, 2004 at 06:28:37AM -0400, Thomas Mills Hinkle wrote: Currently, I'm using popup menus in TreeViews as a hack since I can't pack a ComboBoxEntry into a TreeView. It would be convenient to use

[pygtk] gtk.EntryCompletion keybindings

2004-09-18 Thread Thomas Mills Hinkle
I'm just setting up EntryCompletion within ComboBoxEntry widgets. With the nice TreeModel interface, it's trivial to add the feature. However, my main reason for adding the completion was to make it trivial for a keyboard-oriented user to get auto-completion (e.g. tab completion). However, I

Re: [pygtk] Access to Reference from Emacs

2004-09-20 Thread Thomas Mills Hinkle
On Mon, 20 Sep 2004 09:51:53 +0200 Luca Manini [EMAIL PROTECTED] wrote: I know pygtk docs are in DocBook format, is there a way to get them in (translated into) INFO (so one can C-h C-i)? docbook2x is the tool you're looking for. However, I can't find the docbook source on the pygtk site. In

[pygtk] printing from pygtk: is there a way to use gnome-print's print preview w/o using gnomeprint for layout?

2004-10-11 Thread Thomas Mills Hinkle
I've been trying to come up with a decent way to handle printing. gnomeprint provides a beautiful print preview, but from the programming end, it seems there's no documentation (except examples) and few convenience functions (e.g. to handle paragraphs and text layout simply). For these reasons,

Re: [pygtk] printing from pygtk: is there a way to use gnome-print's print preview w/o using gnomeprint for layout?

2004-10-12 Thread Thomas Mills Hinkle
On Mon, 11 Oct 2004 10:59:59 -0400 Thomas Mills Hinkle [EMAIL PROTECTED] wrote: Is there any way to simply hand gnomeprint an existing pdf or postscript file? I notice now that example 11 in the gnomeprint examples seems to have at one point provided this functionality

[pygtk] ComboBox icon alignment (for selecting file type from icons/text)

2004-10-16 Thread Thomas Mills Hinkle
I'm trying to create a ComboBox with icons and text for a user to select a file type. Everything works well, except that the icons are not properly aligned -- they stagger along in a wavy line rather than all lining up. Also, while I'm writing -- if anyone knows how to connect directly to the

Re: [pygtk] ComboBox icon alignment (for selecting file type from icons/text)

2004-10-17 Thread Thomas Mills Hinkle
On Sun, 17 Oct 2004 00:27:29 -0700 John Finlay [EMAIL PROTECTED] wrote: It seems that you want the pixbufs and text both left aligned. For that case don't set the xalign property and set expand=False in the first pack_start() call. That does it. Thanks! I was spending my time in the wrong

Re: [pygtk] initialize a combo list

2004-10-04 Thread Thomas Mills Hinkle
On Mon, 4 Oct 2004 03:03:58 -0700 David M. Cook [EMAIL PROTECTED] wrote: I would suggest using a TreeModelFilter with a custom visible func, e.g. entries = [refs to your entries here] filter = mymodel.filter_new() filter.set_visible_func(visible_func, entries) cbentry.set_model(filter)

Re: [pygtk] initialize a combo list

2004-10-05 Thread Thomas Mills Hinkle
On Tue, 5 Oct 2004 12:12:37 -0700 David M. Cook [EMAIL PROTECTED] wrote: On Mon, Oct 04, 2004 at 06:22:30AM -0400, Thomas Mills Hinkle wrote: Will the refiltering really happen automatically if I just make the function call Entry.get_text() directly? (if so, when does this happen

[pygtk] where are ComboBox design decisions made?

2004-11-02 Thread Thomas Mills Hinkle
This is a bit off topic, but I've brought up the ComboBox before. I find it frustrating not to be able to typeahead within ComboBox widgets, as works in e.g. dropdown menus in Firefox or IE. I've put together my own hack to allow a use to type a selection when the ComboBox is selected (e.g. if

Re: [pygtk] where are ComboBox design decisions made?

2004-11-03 Thread Thomas Mills Hinkle
On Wed, 3 Nov 2004 11:06:44 -0200 Christian Robottom Reis [EMAIL PROTECTED] wrote: Anyway, of course the right thing in my opinion would be for all ComboBox's everywhere in gtk/gnome to default to selection by typing[2], Have you looked at the completion features that should be in 2.4?

Re: [pygtk] ComboBox icon alignment (for selecting file type from icons/text)

2004-10-16 Thread Thomas Mills Hinkle
On Sat, 16 Oct 2004 11:24:18 -0400 Thomas Mills Hinkle [EMAIL PROTECTED] wrote: I'm trying to create a ComboBox with icons and text for a user to select a file type. Everything works well, except that the icons are not properly aligned -- they stagger along in a wavy line rather than all

[pygtk] Strange threading behavior

2004-11-07 Thread Thomas Mills Hinkle
Hi all. I've been trying to track down some bad threading behavior in my pygtk app (Gourmet Recipe Manager) for a few days. What I'm ending up with is a freeze of my application when a threaded process is running (I have import and export processes run in separate threads and update a progress

Re: R: [pygtk] Strange threading behavior

2004-11-08 Thread Thomas Mills Hinkle
Okay, so I think between this and the other thread, I'm gathering that gtk.threads_enter() and gtk.threads_leave() will not keep me safe, and that the recent bug I found is the first of many I may have to encounter over the life of my app,esp. if I port it to Windows. So I'm going to add

Re: [pygtk] problems with glade and tooltips within toolbuttons

2004-11-09 Thread Thomas Mills Hinkle
On Tue, 09 Nov 2004 10:01:30 + Stuart Hughes [EMAIL PROTECTED] wrote: Hi, I've been pulling my hair out trying to get tooltips to work within a toolbutton. I'm using glade-2 (2.6.5), libglade-2.3.6, pygtk-2.4.0, and python 2.3.4 I've attached a simple test case that shows a

Re: [pygtk] problems with glade and tooltips within toolbuttons

2004-11-09 Thread Thomas Mills Hinkle
On Tue, 9 Nov 2004 10:24:54 -0200 Christian Robottom Reis [EMAIL PROTECTED] wrote: While I agree with you, I think the rationale here is that whatever functionality you place in toolbars *must* be offered via a Menu Item, and that's the standard way of reaching that functionality via the

Re: [pygtk] making selected row visible in FileChooser?

2004-11-16 Thread Thomas Mills Hinkle
On Tue, 16 Nov 2004 20:38:32 +0100 Johan Dahlin [EMAIL PROTECTED] wrote: tis 2004-11-16 klockan 12:33 -0600 skrev Skip Montanaro: Johan Have you tried select_filename() ? Yeah. Didn't help as far as I could tell. Hmm. Might be a bug. Perhaps file a bug in bugzilla and/or ask on

Re: [pygtk] How to Set a Window Icon to a Stock Image

2004-11-17 Thread Thomas Mills Hinkle
On Wed, 17 Nov 2004 21:00:48 +0100 Gian Mario Tagliaretti [EMAIL PROTECTED] wrote: On Wednesday 17 November 2004 20:44, Christian Robottom Reis wrote: Careful. Does the following work? img = gtk.Image() img.set_from_stock(gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON) to me it

Re: [pygtk] How to Set a Window Icon to a Stock Image

2004-11-17 Thread Thomas Mills Hinkle
On Wed, 17 Nov 2004 21:30:16 +0100 Gian Mario Tagliaretti [EMAIL PROTECTED] wrote: On Wednesday 17 November 2004 21:05, Christian Robottom Reis wrote: I would like to understand why... can you (or someone) please explain it? I will offer a few glass of the above mentioned :) img =

Re: [pygtk] ComboBoxEntry problem with glade

2004-11-29 Thread Thomas Mills Hinkle
On Mon, 29 Nov 2004 09:15:06 -0200 Adriano Monteiro [EMAIL PROTECTED] wrote: I have a problem about combobox + glade... I don't know how to insert values, in a combobox generated by glade, in my code. This is the code I'm using: import pygtk import gtk import gtk.glade import gobject

Re: [pygtk] ComboBoxEntry problem with glade

2004-11-29 Thread Thomas Mills Hinkle
On Mon, 29 Nov 2004 09:52:04 -0200 Adriano Monteiro [EMAIL PROTECTED] wrote: I got it... ;) Now it's working... I'm interested in thoses functions to navegate on the cobo list. Can you post then here? Thanks! Regards, here's my full set of combobox convenience functions. I believe

Re: [pygtk] Directory selection dialog

2004-12-04 Thread Thomas Mills Hinkle
On Sun, 05 Dec 2004 02:45:42 +0300 Eugene Morozov [EMAIL PROTECTED] wrote: Hello! I need a tool for selecting directories. I've tried using FileChooserDialog for this purpose but it doesn't support selecting directories. Is the only option to re-implement FileChooserDialog? Eugene

Re: [pygtk] appending to ListStore mysteriously slow, pygtk 2.5

2004-12-07 Thread Thomas Mills Hinkle
On Sun, 5 Dec 2004 17:13:17 -0500 Thomas Mills Hinkle [EMAIL PROTECTED] wrote: John -- I'd meant to cc this to the list initially. I still haven't succeeded in replicating the behavior in a smaller example, but I have confirmed that this is unique to pygtk 2.5 (I have another box with pygtk

Re: [pygtk] appending to ListStore mysteriously slow, pygtk 2.5

2004-12-07 Thread Thomas Mills Hinkle
On Tue, 7 Dec 2004 19:51:37 -0500 Thomas Mills Hinkle [EMAIL PROTECTED] wrote: And here it is -- I finally tracked it down. The slowdown in appending to a list store only occurs when the liststore is attached to a ComboBox with set_wrap_width() set to something other than one. And it only

[pygtk] how do I do reassignable keybindings for menu items?

2004-12-13 Thread Thomas Mills Hinkle
Can anyone point me to a faq/post that explains/hints at how to do reassignable keybindings for menu items (where a user can set a key binding for a menu item by typing it when the menu item is highlighted). I've noticed this feature in a number of GNOME programs and would like to implement it,

Re: [pygtk] appending to ListStore mysteriously slow, pygtk 2.5

2004-12-05 Thread Thomas Mills Hinkle
John -- I'd meant to cc this to the list initially. I still haven't succeeded in replicating the behavior in a smaller example, but I have confirmed that this is unique to pygtk 2.5 (I have another box with pygtk 2.4 where the problem does not occur). I'll post some decent example code as soon as

[pygtk] Iterators on ListStore broken in pygtk 2.5.0 ?

2004-12-25 Thread Thomas Mills Hinkle
My latest development pygtk seems to have broken iterators on ListStore. I'm using ubuntu hoary (read debian experimental/unstable) packages. I can no longer iterate over a ListStore using for row in store. The following code: import gtk print 'gtk version = ',gtk.gtk_version, 'pygtk version =

Re: [pygtk] Using Combox Box

2004-12-27 Thread Thomas Mills Hinkle
On Mon, 27 Dec 2004 14:13:02 -0500 (EST), Chuck Robey [EMAIL PROTECTED] wrote: I am probably wrong, but I figured that the way to do this would be to get to the button widget part of things, and look for a 'pressed' signal. I can't figure out how to get the button widget, though ... the

[pygtk] Problem Freezing Gourmet with cx_Freeze (where do gdk-pixbuf loaders come from?)

2005-01-04 Thread Thomas Mills Hinkle
I am working with a collaborator (the ever patient Roland Duhaime) on freezing my pygtk app on Windows using cx_Freeze. Using resources found here as well as the following useful website (http://s1x.homelinux.net/documents/Xpython/xpython), we've made a gread deal of progress. However, the

Re: [pygtk] Problem Freezing Gourmet with cx_Freeze (where do gdk-pixbuf loaders come from?)

2005-01-05 Thread Thomas Mills Hinkle
I haven't yet tried this, but on python-es, there has recently appeared a discussion of cx_Freeze and gtk which seems to solve my problem by copying over gtk/share,etc, directories by hand. The most recent manifestation of the discussion includes a handy script to do the copying for you: Here is

Re: [pygtk] ComboBoxEntry with autocompletion problem

2005-01-15 Thread Thomas Mills Hinkle
On Sat, 15 Jan 2005 18:59:37 -0600, Mauricio Tellez [EMAIL PROTECTED] wrote: Hi, I have a ComboBoxEntry with autocompletion for the entry, and a callback for the changed signal of the combo. When I select an item from the combo's popup list the changed signal is emited and a TreeView is fill

Re: [pygtk] ComboBoxEntry with autocompletion problem

2005-01-16 Thread Thomas Mills Hinkle
snip You want to connect to the change signal of the entry, not the combo -- that way the same action will happen no matter how the entry changes (typing, selecting, etc.). snip I already do this, but as you said, every keystroke I made call my filtering routing, so what I'm trying to

Re: [pygtk] ComboBoxEntry with autocompletion problem

2005-01-16 Thread Thomas Mills Hinkle
The UI is for list the items from many categories, then edit or remove that item. So I put in the combo all the categories, when you select one, the TreeViee list all the items from that category so I can select an item and press a Delete Button or Update Button. With a normal ComboBoxEntry I

Re: [pygtk] A table with headers (newbie)

2005-01-26 Thread Thomas Mills Hinkle
On Wed, 26 Jan 2005 09:57:20 -0800 (PST), Steve Taetzsch [EMAIL PROTECTED] wrote: Hi all, I am moving from Tkinter to some other widget lib, and am looking at gtk, qt and wx. I want to port an application I wrote in Tkinter which has a 5 column table with headers. The user can change the

Re: [pygtk] A table with headers (newbie)

2005-01-26 Thread Thomas Mills Hinkle
On Wed, 26 Jan 2005 10:49:15 -0800 (PST), Steve Taetzsch [EMAIL PROTECTED] wrote: Danny and Tom, Thanks for the great help, I will try your suggestions soon. Just curious, do people use glade? gnome-glade? Or just write the code? I certainly use glade for most of my UI. It is much

Re: [pygtk] Activating notebook pages

2005-01-27 Thread Thomas Mills Hinkle
On Thu, 27 Jan 2005 22:39:51 +0100, Maciej Katafiasz [EMAIL PROTECTED] wrote: Dnia 28-01-2005, pi o godzinie 00:10 +0530, Saurabh Wagh napisa: While designing an interface for college project , i am using a hierarchial notebook structure (3 level). Argh. Whatever it is you're doing, you

Re: [pygtk] making text clickable

2005-02-10 Thread Thomas Mills Hinkle
On Thu, 10 Feb 2005 23:58:46 +0530, Saurabh Wagh [EMAIL PROTECTED] wrote: Can anyone please guide me as to how should i go about , making any text clickable in my interface, so that clicking on it further gets itz details on to the interface. I don't understand the kind of information you're

[pygtk] Basic Text Editing (adding pangolayout to a buffer + copy/paste controls)

2005-02-14 Thread Thomas Mills Hinkle
I'd like to add basic text editing functionality to my pygtk app and had a couple of questions. First, is there an easy way to implement copy/paste buttons so that they point to whatever C-c/C-v would do in pygtk anyway? Most widgets to the right thing with C-c/C-v by default, but I'd like to

Re: [pygtk] Figuring out printing

2005-02-14 Thread Thomas Mills Hinkle
4) KEY POINT - use context.pango_layout to lay out paragraphs. If you don't do this, you end up doing your own line-breaking routines, font formatting, etc. Which you *will* get wrong for most languages except your native one. This is why we have pango in the first place. This is something I

Re: [pygtk] problems with fullscreen, maximized and window size restoration

2005-02-18 Thread Thomas Mills Hinkle
On Fri, 18 Feb 2005 12:26:45 +0200, Ionutz Borcoman [EMAIL PROTECTED] wrote: Hi, I have 2 problems: * how to restore the fullscreen state, maximized state and the size of the main window of an application when it is restarted ? * how to do the above on MS Windows ? All I want is for

Re: [pygtk] CellRendererText doesn't have clicked signal now what?

2005-02-19 Thread Thomas Mills Hinkle
On Sat, 19 Feb 2005 14:15:11 +0200, Nikos Kouremenos [EMAIL PROTECTED] wrote: http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq13.026.htp but even if it was, I cannot understand what it says [so either way plz someone that knows what it's saying edit it to become more easy to

[pygtk] Re: Basic Text Editing (adding pangolayout to a buffer + copy/paste controls)

2005-02-20 Thread Thomas Mills Hinkle
On Mon, 14 Feb 2005 21:21:55 -0500, Thomas Mills Hinkle [EMAIL PROTECTED] wrote: Second, I understand that according to the following bug, inserting pango markup (u,b etc.) into text-buffers is not easily supported in gtk (though perhaps coming soon)... http://bugzilla.gnome.org/show_bug.cgi

[pygtk] Re: Basic Text Editing (adding pangolayout to a buffer + copy/paste controls)

2005-02-20 Thread Thomas Mills Hinkle
Here it is for anyone else following this thread. This implements basic italic/bold/underline, etc., and provides get_text and set_text methods that allow you to get pango markup out of a TextBuffer. And here's the version without the recently-introduced-and-untested typos :) Tom import

Re: [pygtk] Forbid focusing of TreeView columns

2005-02-22 Thread Thomas Mills Hinkle
Maybe my question was unclear: I *do* need a clickable column, but I want it to be unable to receive the keyboard focus (while staying clickable). I believe this is impossible (or should be). Anything that can be clicked should also be reachable via the keyboard, which means it must be able

[pygtk] When was gnomeprint.pango_create_context added to the API?

2005-03-01 Thread Thomas Mills Hinkle
I have a user reporting the following error with my newest gnomeprint implentation: gnomeprint.pango_create_context(gnomeprint.pango_get_default_font_map()) AttributeError: 'module' object has no attribute 'pango_create_context' I assume this error is a result of his using an older version of

[pygtk] CellRendererText signal when editing starts?

2005-03-05 Thread Thomas Mills Hinkle
Is there a simple way to connect a handler to the beginning of editing? In my case, I'd like to use it with the new CellRendererCombo (which is wonderful to have at last!) to filter the ListModel the Combo is using based on which item the user has started to edit. It looks like I could do this

Re: [pygtk] CellRendererText signal when editing starts?

2005-03-05 Thread Thomas Mills Hinkle
In GTK+ 2.6 the GtkCellRenderer has the editing-started signal. Aha -- very useful. In case anyone else is following this thread, the callback args aren't documented yet AFAICT. The following callback setup is working for me though: def editing_started_cb (CellRenderer, Widget, PathString):

[pygtk] gtk.ComboBox width

2005-03-06 Thread Thomas Mills Hinkle
I have a gtk.ComboBox which is getting items added from a datasource out of my control. I'd like the box to stay a reasonable size to fit into my Gui -- currently, if there's one big entry in the ListModel, the control blows the whole window out of wack. Is there a simple way to stop the size from

[pygtk] gnomeprint and threads problem(?)

2005-03-11 Thread Thomas Mills Hinkle
I'm having trouble tracking down a printing problem. My code is hanging when running the following: dialog = gnomeprint.ui.Dialog(self.job, self.dialog_title, gnomeprint.ui.DIALOG_RANGE | gnomeprint.ui.DIALOG_COPIES,

[pygtk] gnomeprint and threads problem(?) (ignore previous post)

2005-03-11 Thread Thomas Mills Hinkle
*apologies about the previous incomplete post -- it was sent unintentionally! I'm having trouble tracking down a printing problem. My code is hanging when using threads and running the following: dialog = gnomeprint.ui.Dialog(self.job, self.dialog_title,

[pygtk] reading Pango/GTK warning output -- what does the number after the appname mean?

2005-03-11 Thread Thomas Mills Hinkle
When running my app, I get error messages like this: (Gourmet Recipe Manager:30230): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() I'm guessing that pango knows the string Gourmet Recipe Manager from the appname I handed gnome.program_init. Can anyone tell me what the

Re: [pygtk] gtk.Notebook

2005-03-23 Thread Thomas Mills Hinkle
Gtk doesn't, but there is a GnomeDruid and Glade supports it too. At one point in time I was trying to stick solely with Gtk so I used the GtkNotebook and hid the tabs. Then switched pages whenever the user hit the Next and Previous buttons. I was recently in a similar situation -- I wanted

[pygtk] Is gnome.program_init a new feature?

2005-04-22 Thread Thomas Mills Hinkle
I thought gnome.program_init() was a pretty standard part of the GNOME bindings, but I have a user running gnome-python2 version 2.6.0-3 (fedora) reporting the following error when running my program: gnome.program_init(version.appname,version.version) AttributeError: 'module' object has no

Re: [pygtk] tab to next editable treeview/liststore cell?

2005-04-22 Thread Thomas Mills Hinkle
On 4/22/05, James Pelletier [EMAIL PROTECTED] wrote: I have found no good way of accessing the entry field of a tree view. In my case, I needed to know if any cell was being edited, so I could save the change before saving the contents of the store. I was able to come up with a pretty heinous

Re: [pygtk] gnome, glade and store config

2005-04-25 Thread Thomas Mills Hinkle
On 4/25/05, borco [EMAIL PROTECTED] wrote: * is there a special way for a gnome app to store/restore its size and pos (a simpler and better way than that for a bare gtk app)? I don't know of a good simple way to do this, but would like to hear it if anyone else does! For my app, I developed a

Re: [pygtk] get the value of a choice

2005-04-27 Thread Thomas Mills Hinkle
On 4/27/05, Daniele Medri [EMAIL PROTECTED] wrote: i coded something like that: self.cbox = gtk.combo_box_new_text() self.cbox.append_text(1 day) self.cbox.append_text(1 week) self.cbox.append_text(4 weeks) self.cbox.set_active(0) and grabbed

Re: [pygtk] cannot import gnome

2005-05-23 Thread Thomas Mills Hinkle
snip Is there a way to find the imported version of some library from the python prompt? Not sure if this is what you mean, but the following can be useful: import gtk gtk.__file__ gtk.gtk_version gtk.pygtk_version I'm at work away from my setup so I can't give you the output, but each of the

[pygtk] Rhythmbox-style stars in ListView

2005-06-01 Thread Thomas Mills Hinkle
Hello all. I would like to use rhythmbox's rating star-system in my pygtk application. For those not familiar, rhythmbox shows a nice widget with five stars, where the user can click to make more or fewer stars appear. Am I right to assume that doing this would require me to: A. Find rhythmboxes

[pygtk] Buggy Paned() + TextView() behavior

2005-06-03 Thread Thomas Mills Hinkle
I'm found some seriously strange behavior with a TextView inside a Paned() widget. I believe this is most likely a bug in the underlying gtk, but I'm not sure which component is to blame and so I'd be grateful for any thoughts on where the underlying problem is so I can find/file a useful bug

Re: [pygtk] Best way to build in Printing support for Win32 and Linux

2005-06-13 Thread Thomas Mills Hinkle
On 6/13/05, Mark Cooke [EMAIL PROTECTED] wrote: snip I want to be able to print out a report from a text view, and the only way I've seen on this list and google is to use gnome-python-extras, this is great on the Linux desktops, but that has not been ported over to Windows yet. Could

Re: [pygtk] pygtk ListStore Help

2005-06-14 Thread Thomas Mills Hinkle
On 6/14/05, Michael A D'ambrosio [EMAIL PROTECTED] wrote: column1 = gtk.TreeViewColumn(First Name , renderer, text=1) column2 = gtk.TreeViewColumn(Last Name , renderer, text=1) The above says, create a column First name with renderer renderer taking its text from column 1 (read column 2) of

Re: [pygtk] slide shows

2005-06-15 Thread Thomas Mills Hinkle
Forgot to CC the list... On 6/15/05, Mahmad Sadique Hannure [EMAIL PROTECTED] wrote: Hi to all, Is anybody know how to do slide show in PyGTK. Please help me. Thank You. regards, Mohmad Sadique. I'm not sure what you mean exactly, but I whipped up the following example which may help.

Re: [pygtk] Mapping GObject properties as python attributes

2005-06-20 Thread Thomas Mills Hinkle
1. Map GObject property names to python attributes with a predefined prefix reserved for properties. Examples: label.prop_text, label.proptext, etc.. (others?) This seems icky to me. 2. Create a properties container object. Examples label.prop.text, label.props.text,

Re: [pygtk] Mapping GObject properties as python attributes

2005-06-21 Thread Thomas Mills Hinkle
On 6/21/05, Michael Urman [EMAIL PROTECTED] wrote: Go for the singular form, whether prop or property. label.property.text = 'Caption' reads better than label.properties.text = 'Caption' I disagree. Although label - property - text makes sense on a basic level because we are getting a

Re: [pygtk] Treeview signals

2005-06-21 Thread Thomas Mills Hinkle
On 6/21/05, N. Volbers [EMAIL PROTECTED] wrote: Hello, Prash wrote: What signal is emitted when a user clicks on a row? I've tried a few like row_activated but it emits a signal only when return is pressed. If you want to find out when the user has changed which row is selected (i.e.

Re: [pygtk] Updating the app

2005-07-06 Thread Thomas Mills Hinkle
On 7/6/05, Jose de Paula Eufrasio Junior [EMAIL PROTECTED] wrote: Hello there, I'm making a pygtk app and got several fields wich values are inserted (like textviews, spinbuttons) and these values can be changed with values from other widgets on the app. I'm not very friendly to the idea

Re: [pygtk] create help for a multiplatform app

2005-07-28 Thread Thomas Mills Hinkle
On 7/28/05, pier carteri [EMAIL PROTECTED] wrote: Hi to all, I'm developing a multiplatform app with python and gtk. It must work fine in linux and in window (maybe also OsX). As every good app It must have an help (better a contextual help) showing how to use it. But at this point I'm

[pygtk] mnemonic managing tool

2005-07-30 Thread Thomas Mills Hinkle
Hi all. I just completed a tool for my app which automatically adjusts mnemonics in a window to make them as readable as possible. I did after feeling frustrated by constantly creating mnemonic conflicts accidentally and realizing that controlling mnemonics with i18n would be far too difficult a

Re: [pygtk] whats a good idea for an indicator?

2005-10-05 Thread Thomas Mills Hinkle
On 10/5/05, nephish [EMAIL PROTECTED] wrote: what would be a good solution for an indicator ? i need something that will alert me when something in our equipment fails. like a red square that can change to green, or something that looks like a warning light I've used the warning icon from

Re: [pygtk] advice on depreciated widget

2005-10-15 Thread Thomas Mills Hinkle
On 10/15/05, nephish [EMAIL PROTECTED] wrote: i shall suck it up and use the ComboBoxEntry, trying to save some time here, but i got a treeview working, so i guess i can do about anything. thanks much, sk There are convenience methods to simplify using the ComboBoxEntry if you don't need to

Re: [pygtk] delete-event with multiple windows from different classes???

2005-10-20 Thread Thomas Mills Hinkle
On 10/20/05, Chris Irish [EMAIL PROTECTED] wrote: yeah i'll try that.. but one more thing. if I delete all those windows doesn't the main loop keep running? Do I need to have all these seperate window classes reference the class that instansiates them to kill the mainloop? Or will it

Re: [pygtk] What widgets support Pango markup?

2005-11-02 Thread Thomas Mills Hinkle
On 11/2/05, Chris Irish [EMAIL PROTECTED] wrote: 2 questions: Which widgets besides gtk.Label allow the use of the Pango markup language? How can I change the font size of text in a textbuffer? It would be nice if textbuffer's could use pango markup directly, wouldn't it? If they

Re: [pygtk] Quick notebook question...

2005-11-02 Thread Thomas Mills Hinkle
On 11/2/05, Rob Marino [EMAIL PROTECTED] wrote: Hi all. Quick question regarding notebook signals: I have an app with a notebook. I need to detect when a user switches to another page. Problem is this - when I detect the 'switch_page' signal and use notebook.get_current_page() I'm

Re: [pygtk] Improving pygtk appearance, or moving to wxPython?

2006-05-03 Thread Thomas Mills Hinkle
..should i install a theme or do i have to do all the drawingit requires by using cairo??...what i really need is better appeareance widgets...In general, the theme philosophy is meant to give users control over the appearance of applications on their computer and to ensure a consistent look

Re: [pygtk] Trying to use style from custom widget

2006-09-23 Thread Thomas Mills Hinkle
gtk.Widget.__init__(self)style = gtk.rc_get_style_by_paths (self.get_settings(),'GtkEntry', 'GtkEntry', gobject.TYPE_NONE)Using gtk.Entry instead of gobject.TYPE_NONE will get you a style object, but I'm not sure if that's what you want. Tom ___ pygtk

Re: [pygtk] saving text with layout

2006-10-02 Thread Thomas Mills Hinkle
On 10/2/06, Pascal DUCHATELLE [EMAIL PROTECTED] wrote: Hello,Still trying to use pango markup (and other) in a textview (at least). I used the pygtk demo file testext.py which is a basic text editor. There is a menu that allows the user to load an aexample file containing many text demo features

Re: [pygtk] pango markup in a liststore

2006-10-04 Thread Thomas Mills Hinkle
>From your example code, I can't see what's going on. I whipped up an example to try to reproduce your problem, but I had no trouble creating multiple columns that worked. Can you see if the following code works for you? Assuming it does, then I'm guessing there's a typo or something in your

[pygtk] Interrupting a recursive mainloop from the outside...

2006-10-18 Thread Thomas Mills Hinkle
I'm trying to interrupt an embedded mainloop from my application. The mainloop is run inside of a dialog (actually, it's a dialog that was then reframed in the main app (in a notebook tab) in order to create the feel of multiple screens rather than multiple windows). Anyway, when the window on the

[pygtk] Re: Interrupting a recursive mainloop from the outside...

2006-10-18 Thread Thomas Mills Hinkle
On 10/18/06, Thomas Mills Hinkle [EMAIL PROTECTED] wrote: I'm trying to interrupt an embedded mainloop from my application. The mainloop is run inside of a dialog (actually, it's a dialog that was then reframed in the main app (in a notebook tab) in order to create the feel of multiple screens

Re: [pygtk] back to my tree view

2006-10-24 Thread Thomas Mills Hinkle
On 10/24/06, shawn bright [EMAIL PROTECTED] wrote: ok, i have my tree view and populated with a list like the tutorial said, however, i need a way to refresh the list.here is what i have so farself.group_treeiter = self.group_model.get_iter_first()self.group_model.clear ()for name in name_list:

Re: [pygtk] Resize only on X axis

2006-11-02 Thread Thomas Mills Hinkle
On 11/2/06, Marcin Lewandowski [EMAIL PROTECTED] wrote: Hi,I tried many things but I can't do that. Anyone can write me a shortexample how to allow resizing only on horizontal axis? Y size would becalculated automatically and should remain. You'll have to be a lot more specific for us to know what

Re: [pygtk] make button insenstive when the contents of gtk.Entry have changed

2006-11-14 Thread Thomas Mills Hinkle
On 11/14/06, John Kelly [EMAIL PROTECTED] wrote: Hello everyone,I need some help in making a gtk.Button insensitive when a gtk.Entrycontents have changed. I have tried many different signals, each of themfailed to do what i wanted. I'm confused -- have you tried simply using the 'changed' signal

Re: [pygtk] how to set pygtk global font?

2007-01-10 Thread Thomas Mills Hinkle
On 1/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all: Can anyone tell me how to set pygtk global font with code instead of editing gtkrc file? You can use gtk.rc_parse_string. That takes as its argument whatever you would put in the rc file. e.g. gtk.rc_parse_string(''' style

[pygtk] Using new gtk printing system - any way to use reportlab generated PDFs? Alternatively, a tutorial?

2008-11-08 Thread Thomas Mills Hinkle
I'm interested in switching to the new gtk printing system (I still use gnomeprint for GNOME applications, LPR for gnome-lib-less linux users, and launching Adobe Acrobat to print PDF for Windows users). I can already get very nice PDF output using ReportLab -- is there any way I can just hand

Re: [pygtk] [CellRenderer] - Put icons in the TreeView

2008-11-10 Thread Thomas Mills Hinkle
You're using the stock= attribute of the CellRendererPixbuf -- that's designed to grab a stock icon. You want to be using the pixbuf= attribute. Assuming you don't want to mix and match (that you just want to use pixbufs), changing stock to pixbuf in the code below should get you what you want

Re: [pygtk] Set markup in a TextBuffer

2008-11-24 Thread Thomas Mills Hinkle
On Mon, Nov 24, 2008 at 12:27 PM, Luis Javier Peris [EMAIL PROTECTED]wrote: Hello everybody! I would know if there's a *simple* way having a string marked up with the Pango text markup language to set it in a TextBuffer, I mean the same purpose of *set_markup gtk.Label* method but for

[pygtk] ToggleButton args break with python2.6

2009-05-30 Thread Thomas Mills Hinkle
After a recent OS upgrade, I found that my code broke with the following: self.pause = gtk.ToggleButton(_('_Pause'),True) RuntimeError: more argument specifiers than keyword list entries (remaining format:'):GtkToggleButton.__init__') Testing at the python shell confirms. I get the same

Re: [pygtk] ToggleButton args break with python2.6

2009-05-30 Thread Thomas Mills Hinkle
On Sat, May 30, 2009 at 8:20 AM, Thomas Mills Hinkle tmhin...@gmail.comwrote: After a recent OS upgrade, I found that my code broke with the following: self.pause = gtk.ToggleButton(_('_Pause'),True) RuntimeError: more argument specifiers than keyword list entries (remaining format

Re: [pygtk] Using new gtk printing system - any way to use reportlab generated PDFs? Alternatively, a tutorial?

2009-11-04 Thread Thomas Mills Hinkle
On Sat, Nov 8, 2008 at 9:54 AM, Thomas Mills Hinkle tmhin...@gmail.comwrote: I'm interested in switching to the new gtk printing system (I still use gnomeprint for GNOME applications, LPR for gnome-lib-less linux users, and launching Adobe Acrobat to print PDF for Windows users). I can already