Re: [gDesklets] Control for Requesters (IInformer, IInformant, IInteraction, IRequester, ...??)



Hi again.

just want to inform you on the current situation on this one.

Basically it is working, even though some/most of the "fancy stuff" is
missing. I hope to have the first alpha released/committed this week.

So, this is the first (working) example displaying the event in a simple
label:

----------

def askme_event_handler(event):
    Dsp.label.value = str(event)

[...]

askme.text = "<span foreground='#FF0000' background='blue'
                    size='10000'>Pango</span> in <b>action!</b>"
askme.icon = ("gtk-about", "top")
askme.buttons = [("great", "Great!"), ("notbad", "Not too bad...")]
askme.visible = True
askme.bind("event", askme_event_handler)

----------

So the label would be set to "great" or "notbad" depending on the button
clicked or "None" if the reqeuster has been destroyed or closed without
clicking a button.

What do you think?
The icon is optional and you do not have to use pango in the text ;).

If we decide to have the visible property READONLY...
(see last post:
Maybe "visible" can only be set to True, so open requesters cannot be
destroyed or closed by the desklet (this might be confusing for the user)?)
... we could integrate the setter into the buttons property and save one
line... but I guess it is better like shown in the example above (IMHO).

Still to come:

- Stock icons for the buttons
- free icons (gfx) for the main icon
- alignment of the elements

And of course all the stuff and questions from the last posts.

Any comments, ideas etc. ?!

Greetings, Bjoern



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]