David McCabe <[EMAIL PROTECTED]> writes:
> No, the actual problem is that I'm still getting None out of
> TreeModel. Take a look at this function:
>
> def reflect_view(self):
>
> print self
> list.__delslice__(self, 0, len(self))
> print self
>
Um...the whole point of backing the TreeModel with a list subclass was
because I didn't want to deal with the horrid Tree API anymore. And
using it did make my code vastly cleaner than when I was dealing with
TreeModel directly.
Or do I misunderstand you?
--
David McCabe
PGP Key ID: 0xBD6B3B4E
4
David McCabe <[EMAIL PROTECTED]> writes:
> I still have a problem though: the signals row_inserted and
> row_deleted seem to get thrown even when my own handler code is
> inserting and deleting. I want something that is only sent when the
> view is modified by external things like drag and drop re
No, the actual problem is that I'm still getting None out of
TreeModel. Take a look at this function:
def reflect_view(self):
print self
list.__delslice__(self, 0, len(self))
print self
for row in self.view.get_model():
John Hunter wrote:
Is it possible? I tried setting GDK_USE_XFT w/o effect.
I'm using Cedric's pygtk-2.0.0 and GTK runtime 2.2.4.1.
Fonts on Windows are drawn using the native win32 calls. To get font
smoothing in GTK you need to have font smoothing in Windows itself.
Windows has support for
That's fantastic!
I still have a problem though: the signals row_inserted and
row_deleted seem to get thrown even when my own handler code is
inserting and deleting. I want something that is only sent when the
view is modified by external things like drag and drop reordering, not
my own stuff.
An
Is it possible? I tried setting GDK_USE_XFT w/o effect.
I'm using Cedric's pygtk-2.0.0 and GTK runtime 2.2.4.1.
Thanks,
John Hunter
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://ww
Hi,
foreach's function parameters are: model, path, iter, userData(if there
is any, there also could be more than one)
The first three parameters: model, path, and iter, must be included when
you define the function, but you don't have to specifically pass them
because they will get pass automatic
Thanks! This seems to be working great. I'm calling a new method on my
model called reflect_view() that is supposed to sync my list with the
TreeModel. However, that method isn't working for strange
reasons. Here it is -- self is a subclass of list, self.view is the
instance of TreeView:
d
The docs don't say anything about what the arguments are that are
passed to the function for TreeModel.foreach()
Does anybody know what arguments I'll get? Thanks!
--
David McCabe
PGP Key ID: 0xBD6B3B4E
41E5DD0466B3C3EFFAC6977DD5B80608BD6B3B4E
signature.asc
Description: Digital signature
_
On Tue, 2003-11-18 at 14:59, Gustavo J. A. M. Carneiro wrote:
> It is indeed quite easy to write nautilus views, as you'll find out.
> But beware that the new GNOME HIG trend nowadays is to move away from
> nautilus views and create small file viewers instead.
This is true to an extent. O
A Ter, 2003-11-18 às 20:04, Graham Ashton escreveu:
> On Tue, 2003-09-02 at 14:55, James Henstridge wrote:
> > Gnome-Python 2.0.0 is now available at:
> > http://ftp.gnome.org/pub/GNOME/sources/gnome-python/2.0/
> >
> > Gnome-Python provides bindings for the Gnome 2.x development platform
> >
Christian Robottom Reis <[EMAIL PROTECTED]> writes:
> Or are you looking for something different? I don't think there's a
> specific 'reorder' signal.
There's a 'rows-reordered' signal on the gtk.TreeModel, but I'm not
sure when it is emitted. I think it's only used when you explicitly
reorder t
On Tue, 2003-09-02 at 14:55, James Henstridge wrote:
> Gnome-Python 2.0.0 is now available at:
> http://ftp.gnome.org/pub/GNOME/sources/gnome-python/2.0/
>
> Gnome-Python provides bindings for the Gnome 2.x development platform
> libraries. It builds on top of PyGTK, and includes bindings fo
Chris Rouch wrote:
Makes sense. Is there some documentation somewhere that says which
widgets are windowless? the gtk.Label documentation says this
explicitly, but I've not see it for any others, and to me at least its
not clear which widgets have windows associated and which don't.
Try:
http
On Tue, Nov 18, 2003 at 11:59:16AM +0100, Chris Rouch wrote:
> Makes sense. Is there some documentation somewhere that says which
> widgets are windowless? the gtk.Label documentation says this
> explicitly, but I've not see it for any others, and to me at least its
> not clear which widgets have w
On Tue, Nov 18, 2003 at 03:54:49AM -0800, David McCabe wrote:
> I've been reading the tutorials for PyGTK and the TreeView tutorial,
> but I'm having trouble coming up with clear information about how to
> be notified when the user reorders a list using drag and drop. I'd
> like to find the easiest
Hi,
looking at the libgnomecanvas wrapper code I get the impression that it's currently
not possible to create custom canvas items by subclassing the existing ones in
python.
Is that correct?
I was trying to set up a simple composite item as a subclass of CanvasGroup (see
attachment).
Obviously
Hello.
I've been reading the tutorials for PyGTK and the TreeView tutorial,
but I'm having trouble coming up with clear information about how to
be notified when the user reorders a list using drag and drop. I'd
like to find the easiest way to reflect these reorders in my model.
Any tips? Thanks
On Mon, 17 Nov 2003 13:45:31 -0200
Christian Robottom Reis <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 17, 2003 at 04:37:46PM +0100, Chris Rouch wrote:
> > I was surprised to need the EventBox for a table - I thought it
> > would have a window associated with it. But without the EventBox,
> > the bac
20 matches
Mail list logo