Find the answer to your Linux question:
Results 1 to 2 of 2
I m creating an interface... i need to create a window like this (in attachement) here labels "token code:" n "time stamp:" are static please tell me how to implement ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    1

    Unhappy GTK to Create/ Update a Label to display time


    I m creating an interface...
    i need to create a window like this
    (in attachement)


    here labels "token code:" n "time stamp:" are static

    please tell me how to implement this timestamp . which will be changing every second.



    PLease tell me how to do this

    without using cairo.h
    Attached Images Attached Images

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,167
    Looks like a job for gtk_label_set_text(). I think g_timeout_add() will set the function to do the updating. See the gtk manual at GTK+ Reference Manual.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •