http://bugs.async.com.br/show_bug.cgi?id=3843





--- Comment #1 from Johan Dahlin <[EMAIL PROTECTED]>  2008-11-07 11:23:39 BRT 
---
(From update of attachment 4997)
>Index: kiwi/ui/cellrenderer.py
>+# Copyright (C) 2005,2006,2008 Async Open Source

2005,2006 did you stea^Wreuse some old code?

>+class KiwiCellRenderer(gtk.GenericCellRenderer, PropertyObject):

"Kiwi" is probably the wrong name here.

ComboDescription maybe?

>+    __gproperties__ = {
>+         "label": (gobject.TYPE_STRING, "Text",
>+                  "Text", '',  gobject.PARAM_READWRITE),
>+         "data": (gobject.TYPE_PYOBJECT, "data",
>+                  "data", gobject.PARAM_READWRITE),
>+    }

gproperty('label', str, default="Text")
gproperty('data', object)

>+    def __init__(self):
>+        label = gtk.Label()
>+        self.label_layout = label.create_pango_layout('')
>+        self.legend_layout = label.create_pango_layout('')
>+        self.legend_callback = None

These should be private

>+    def set_legend_callback(self, callable):
>+        self.legend_callback = callable

I'm not sure about "legend" here, do you have any other suggestions?
description, long_description, details, popup_description?

>+        # Draw a sepatartor to easily distinguish between options

separator

>Index: kiwi/ui/comboentry.py

>+        self.renderer = KiwiCellRenderer()

Private

General question, can you add three lines somehow? How would that look like?
Suppose that I'd like to do this for a client:
  "Johan Dahlin"
  "R. Rue Barbosa 1977, São Carlos, SP"
  "(16) 9112 6219, [EMAIL PROTECTED]"

How would I do that?


-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
Kiwi mailing list
[email protected]
http://www.async.com.br/mailman/listinfo/kiwi

Reply via email to