Il giorno ven, 05/11/2010 alle 20.33 +0100, [email protected] ha
scritto:
> Maybe I have not expressed well .. I want to create a clock at the top or 
> bottom of the window of my application and maybe even add the date.
> Searching Google I found only examples of clock graphs, but external 
> applications and windows owner, like this : http://ralph-glass.homepage.t-
> online.de/clock/readme.html
> but is not what I want to do.

Well, just to be sure: your application is written with pygtk, right?

If it is, at some point you are creating a toplevel window which has
some widget inside.

1) If this widget is already a VBox or a Table, you can simply follow
the tutorial (or use a label if you don't want the graphic clock) and
insert the drawing area (or the label) at the top (instead than creating
the gtk.Window object).

2) If it is not, then encapsulate it in a VBox or a Table (which in turn
is contained in the toplevel window), and go back to 1).


The problem is: I'm assuming that you know _something_ of pygtk. Is this
assumption correct, perfect. If it is not, notice you probably won't
find a tutorial explaining how to integrate a clock in _your_ particular
application.

bye

Pietro

> 
> Thanks
> 
> 
> 
> 
> 
> >----Messaggio originale----
> >Da: [email protected]
> >Data: 05/11/2010 16.53
> >A: "[email protected]"<[email protected]>
> >Cc: <[email protected]>
> >Ogg: Re: [pygtk] Clock in Pygtk but in one or more windows
> >
> >Il giorno ven, 05/11/2010 alle 16.19 +0100, [email protected] ha
> >scritto:
> >> Hello !
> >> 
> >> 
> >> I need to show the updated time in a window (or label).
> >> 
> >> I was looking a example with Tkinter but I do not know how to
> >> integrate in a pygtk window or do it in different way. 
> >> 
> >> Any help will be appreciate.
> >
> >To create a clock in pygtk, I would start from any of the examples that
> >comes out when googling "pygtk clock", not from a tkinter clock.
> >
> >Pietro
> >
> 
> 
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/


_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to