Re: [pygtk] TreeView highlighting

2008-11-19 Thread Alessandro Dentella
On Wed, Nov 19, 2008 at 01:44:11AM -0800, Jim Trebbien wrote: Hi I am working on a project in which I use treeviews, what I can't figure out is how do I highlight a single cell in a treeview and/or getting it to not be highlighted at all? If anyone have an example or a link... well anything,

Re: [pygtk] examples

2008-11-17 Thread Alessandro Dentella
On Mon, Nov 17, 2008 at 05:05:57AM -0300, carlos albornoz wrote: hello list. I'm new at this, and I'm looking for examples but I find nothing, I need to learn pygtk+mysql I don't have any pointer for pygtk+mysql but, depending on what you have to do with the database, you may find this

[pygtk] pygoocanvas binaries for windows available

2008-11-16 Thread Alessandro Dentella
I uploaded windows binaries for pygoocanvas to: http://sqlkit.argolinux.org/download Thanks to Armin Burgmeier for providing them. sandro *:-) ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK

Re: [pygtk] Localization

2008-11-13 Thread Alessandro Dentella
On Tue, Nov 11, 2008 at 01:51:26PM +0100, Alessandro Dentella wrote: Hi, I want to add support for localization to my package sqlkit[1], for text, numbers and dates. I'm unsure on what kind of support PyGTK gives. I give some more details: spin button === if I use spin

[pygtk] Localization

2008-11-11 Thread Alessandro Dentella
Hi, I want to add support for localization to my package sqlkit[1], for text, numbers and dates. I'm unsure on what kind of support PyGTK gives. If I store numbers in a model, is there a way to have it displayed in the prefferred style or should I format each number (eg. via

[pygtk] [Announce] sqlkit - first public release

2008-11-09 Thread Alessandro Dentella
ANNOUNCE: sqlkit 0.8.3 November, 10 2008 I'm happy to announce release 0.8.3 of sqlkit package for python - the first public release. http://docs.argolinux.org/sqlkit Sqlkit PyGtk package that provides Mask and Table widgets to edit database

[pygtk] options for batch installazion of pygtk-2.12.1-1.win32-py2.5.exe

2008-10-29 Thread Alessandro Dentella
Hi, i'd like to install pygtk on win via a batch. Is there anybody that can tell me if there are options/switches to determin via command line all the variables (PATH mainly) so that pygtk install will not open any popup and install quitely? It seems (I'm really ignorant on the

Re: [pygtk] options for batch installazion of pygtk-2.12.1-1.win32-py2.5.exe

2008-10-29 Thread Alessandro Dentella
On Wed, Oct 29, 2008 at 01:14:26PM +0100, A.T.Hofkamp wrote: Alessandro Dentella wrote: Hi, i'd like to install pygtk on win via a batch. Is there anybody that can tell me if there are options/switches to determin via command line all the variables (PATH mainly) so that pygtk

Re: [pygtk] gobject metaclasses

2008-10-27 Thread Alessandro Dentella
On Sun, Oct 26, 2008 at 11:17:24AM -0500, Michael Urman wrote: On Sun, Oct 26, 2008 at 4:30 AM, Alessandro Dentella [EMAIL PROTECTED] wrote: TypeError: Error when calling the metaclass bases metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass

Re: [pygtk] gobject metaclasses

2008-10-27 Thread Alessandro Dentella
On Sun, Oct 26, 2008 at 4:30 AM, Alessandro Dentella [EMAIL PROTECTED] wrote: TypeError: Error when calling the metaclass bases metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases What does this mean and what

Re: [pygtk] gobject metaclasses

2008-10-27 Thread Alessandro Dentella
On Mon, Oct 27, 2008 at 11:13:27AM +0100, Joel Hedlund wrote: Alessandro Dentella wrote: What does this mean and what should I do instead? I'm not sure how much this applies to you, but one really sound piece of advice I got off the comp.lang.python newsgroup is that if you're trying

[pygtk] gobject metaclasses

2008-10-26 Thread Alessandro Dentella
I don't really understand the error message I receive when I try to use gobject metaclasses as in the following code: import gobject class Dummy(type): def __new__(cls, name, bases, attrs): return type.__new__(cls, name, bases, attrs) class A(object):

Re: [pygtk] Writing a composite widget

2008-10-08 Thread Alessandro Dentella
Is there some best-practices document or something regarding creating composite widgets with gtk? I'm not really experienced in this, so please don't take my words for best-practice or the like... First suggestion (that is not strictly for composizion of widgets) is to read the nice docs on

Re: [pygtk] cell.set_property and colors - SOLVED

2008-10-01 Thread Alessandro Dentella
On Thu, Sep 25, 2008 at 05:48:54PM +0200, Alessandro Dentella wrote: Hi, I want to color single cells in a TreeView (totals of a table). Since I'm using cell_data_func to set value of property text I tried using that same function to set colors but it turns out all cells get

[pygtk] Cell renderer repository?

2008-10-01 Thread Alessandro Dentella
Hi, I'm in the need to write a cell render for what I believe a common thing: a text editor for log text that is not easy to edit in the standard CellRendererText. I'm wandering if there exist already such a renderer or a repository of cell renderer ready to use. A second one I need

[pygtk] Totals in TreeView

2008-09-30 Thread Alessandro Dentella
Hi list, I try wit a different subject... sometime that makes the difference! I guess I'm not the only one that tried adding a different look for a row. In internet there's plenty of solutions via a model column and some via set_cell_data_func. I tried this but whet happens is that

Re: [pygtk] cell.set_property and colors

2008-09-26 Thread Alessandro Dentella
On Thu, Sep 25, 2008 at 05:48:54PM +0200, Alessandro Dentella wrote: Hi, I want to color single cells in a TreeView (totals of a table). Since I'm using cell_data_func to set value of property text I tried using that same function to set colors but it turns out all cells get

[pygtk] cell.set_property and colors

2008-09-25 Thread Alessandro Dentella
Hi, I want to color single cells in a TreeView (totals of a table). Since I'm using cell_data_func to set value of property text I tried using that same function to set colors but it turns out all cells get colored... def dict_cell_data_func(self, column, cell, model, iter,

Re: [pygtk] gtk.TreeView

2008-09-03 Thread Alessandro Dentella
My question is, that is there any easy way, to store the status of the current look of the tree (I mean, which branches are expanded, which are collapsed), and after the reloading, revert tis state as much as possible? The problem is, that the reloaded structure is not exactly the same, some

Re: [pygtk] How to refill a container?

2008-08-31 Thread Alessandro Dentella
On Sun, Aug 31, 2008 at 08:23:19AM -0700, nielinjie wrote: Hello list: I am trying to refill a container (a VBox in my case), saying that I want to remove all child from the container and then add some ones else. Here is my code. self.vbox.foreach(lambda

Re: [pygtk] Let's split it up...

2008-07-01 Thread Alessandro Dentella
Ok, I try to split it into very little bits... I want a CheckButton that doesn't react to click. I thought to connect a handler to the signal clicked that just return True but it does not work. What's wrong? sandro w = gtk.Window() c1 = gtk.CheckButton('toggle and clecked - True') w.add(c1)

Re: [pygtk] CheckButton signals

2008-06-30 Thread Alessandro Dentella
Hi, rereading myself I see I can improve the explanation. While trying to implement the tri-state checkbutton I stumbled across some problems that I think should be trivial. I added to a check butto a callback to get into inconsistent state (and it works) but a subsequent click triggers the

[pygtk] CheckButton signals

2008-06-29 Thread Alessandro Dentella
Hi, i think my problem is very simple but I didn't get it right... All I want to do is substitute normal toggling of CheckButton to step into inconsisten mode. I have the working situation in a CellRenderer but now I need it also for normal Widgets. 1. I thought I'd connect to

Re: [pygtk] ANNOUNCE: Spiff GtkWidgets (goocalendar, AnnotatedTextView, color tools)

2008-06-27 Thread Alessandro Dentella
On Wed, Jun 25, 2008 at 09:18:52PM +0200, Samuel Abels wrote: Hi, I am happy to announce Spiff GtkWidgets, a collection of Gtk widgets written in Python. SpiffGtkWidgets.Calendar - About a year ago I dropped a calendar widget similar to Google Calendar on this

Re: [pygtk] right-click events

2008-06-24 Thread Alessandro Dentella
On Mon, Jun 23, 2008 at 08:07:24PM -0700, Adiv wrote: Hi, is there any way to only capture right-mouse-button clicks? All I can seem to find is double- and triple-clicking. I know Tkinter can capture right-button clicks, so I was hoping GTK could as well. I'm not aware of any but you can

Re: [pygtk] gtk.ListStore columns in a gtk.ComboBox (added full code listing)

2008-06-22 Thread Alessandro Dentella
future. So my question remains: how can I display a single column from a multi-column ListStore in a ComboBox? I've never tryed in a ComboBox. I just guess is not very different than an Entry. I paste here some code I have worked out in the past. the code is working but I had to cut many parts

Re: [pygtk] get the version of gtk / pygtk used

2008-06-16 Thread Alessandro Dentella
On Sun, Jun 15, 2008 at 11:50:42PM -0700, awalter1 wrote: Hi, I'm working with Linux RedHat EL4. a version of gtk+ was installed with the release RedHat : rpm -qa returns this version. Others more recente versions of gtk+ have been installed from sources : not recognize from rpm. Same

[pygtk] Increment warning level

2008-05-26 Thread Alessandro Dentella
Hi, After a change in my code, I receive the follwing message (alone) ./invitati.py:31: Warning: unable to set property `text' of type `gchararray' from value of type `PyObject' gtk.main() I can't really understand where it comes from. It seems I'm setting a cell renderer with pyobject

Re: [pygtk] grab_focus - partial solution

2008-05-17 Thread Alessandro Dentella
It turns out grab_focus works as expected when I first create the window and entry. Any successive entry, added to this window will not get the focus. Ok, I partially solved my problem adding a .present() to the callback. I say 'partially' since that makes the window to raise to the toplevel,

[pygtk] grab_focus

2008-05-16 Thread Alessandro Dentella
hi, I want to let an entry to (be created and) get the focus when I select a menu item on another window. I'm using grab_focus, but that only does half of the job. It get focus *if I move the mouse over the window of the entry*. I'd rather have the mouse stay where it is. How can I do

Re: [pygtk] grab_focus

2008-05-16 Thread Alessandro Dentella
On Fri, May 16, 2008 at 09:19:01AM +0200, Alessandro Dentella wrote: hi, I want to let an entry to (be created and) get the focus when I select a menu item on another window. I'm using grab_focus, but that only does half of the job. It get focus *if I move the mouse over

[pygtk] CellRender do_* methods

2008-05-12 Thread Alessandro Dentella
Hi, I need to change some renderer I prepared some time ago. At that time I used code written by others and modified to what I wanted but i never understood where is the official documentation for the do_* methods that I can overwrite in my Renderer and I feel bad in just trying out w/o

[pygtk] CellRenderToggle, ListStore and tri-state

2008-04-26 Thread Alessandro Dentella
Hi, i want to improve an editor of database tables I'm working on. When editing tables I use a TreeView with a ListStore and I use a GType gboolean to store the data. I'd like to add capability to handle IS NULL beside True and False ad that is a different valuable choiche. 1.st

Re: [pygtk] Custom Widgets (Movable Containers)

2008-01-25 Thread Alessandro Dentella
On Fri, Jan 25, 2008 at 12:24:45AM +0100, Gian Mario Tagliaretti wrote: On Jan 24, 2008 11:39 PM, Wildemar Wildenburger [EMAIL PROTECTED] wrote: Hi Wildemar, Thank you for that suggestion, John. From (briefly) looking around, pygoocanvas doesn't seem to be terribly well documented.

<    1   2