473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

two labels in the window but in diferent time

Hi there,
I am trying to create a window that appears one label1="First Message" and after
of 3,4 seconds I would like to append another label in the same window
label2="Second Message" bellow of the first label, but I can only show both
labels in the same time, and not in diferent time in the same window, someone
knows something about???
Gratefully!

----> my code:
from anygui import *
import win32api
# Make components here
app = Application()
# Add components to the Window
w = Window()
w.set(title='Hello, again', size=(300,200))
lab = Label(text='Hello, again!', position=(10,10))
lab1 = Label(text='Hello, again!', position=(10,40))

app.add(w)
w.add(lab)
win32api.Sleep(2000)
w.add(lab1)
app.run()


Jul 19 '05 #1
1 1155
On Wed, 08 Jun 2005 13:30:38 -0300, rr***@usp.br declaimed the following
in comp.lang.python:

app.add(w)
w.add(lab)
win32api.Sleep(2000)
w.add(lab1)
app.run()
Your application probably doesn't display until the run() is
invoked. Everything before that is just set-up of hidden items.

I suspect what you need to do is put a timer of some sort into
the .run() system, and let the expiration of the timer perform the
add().

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dalan | last post by:
I have been using a module for printing labels in Access 97, and although it works fine, I would like to add a small enhancement to it. The module allows for setting the number of labels to print...
1
by: Bernardo | last post by:
Hi, Anyone knows how can I sellect a diferent cell or Row at runtime? Thanks a lot
3
by: Kidus Yared | last post by:
I am having a problem displaying Unicode characters on my Forms labels and buttons. After coding Button1.Text = unicode; where the unicode is a Unicode character or string (‘\u1234’ or...
1
by: Andy Roxburgh | last post by:
Hi, I have an monitoring application that displays various pieces of data, which are changing, on a tabpage within a form. The data is displayed in various different colours and the various...
6
by: Ron | last post by:
Hi, I know Access allows for easy construction of a report setup to print labels from a table/query, etc. I've done that one. It works pretty well for what I need. However, is there an...
2
by: geskerrett | last post by:
Does anyone know of a way to read text labels from a Win32 application. I am familiar with using pywin32 and the SendMessage function to capture text from Buttons,text boxex, comboboxes, etc,...
6
by: Blkpower | last post by:
Hi to all, I'm writing a windows form application that has a panel with some labels in it. I need to let the user move these labels with drag and drop inside the panel. How can I do it? I now...
4
by: sstupendo | last post by:
Hello, I have a problem because I have a window in domain 1 and it calls a modal window that is in domain 2. I need to return a value from the modal window but always returns undefined. I think...
0
by: xikom01 | last post by:
In this age, there is a lot of focus on the importance of "getting organized." There are even professional organizers for hire! Labels are a huge presence in the field of organization, because they...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.