Display waiting time in text box using WXPython

Hello,

I want to make a application in which there are two buttons(say click & ok) and a text box.I want to generate waiting time between clicking on two buttons and display in text box.

For Example:-

If i first click on CLICK Button and wait for few seconds/minutes then click on OK Button. Then this waiting time should be displayed on text box.

Please help me.

Thanks in advance

On CLICK you save it to a variable and then on the second button you
do it again and calculate your waiting time.
Werner

···

On 29/01/2013 13:39, Priyank Khare
wrote:

Hello,
I want to make a application in which there are two
buttons(say click & ok) and a text box.I want to generate
waiting time between clicking on two buttons and display in text
box.

For Example:-

    If i first click on CLICK Button and wait for few

seconds/minutes then click on OK Button. Then this waiting time
should be displayed on text box.

http://docs.python.org/2/library/datetime.html?highlight=now#datetime.datetime.now

This is not a hard problem. What do you already have?

···

Priyank Khare wrote:

    I want to make a application in which there are two

buttons(say click & ok) and a text box.I want to generate
waiting time between clicking on two buttons and display in text
box.

For Example:-

    If i first click on CLICK Button and wait for few

seconds/minutes then click on OK Button. Then this waiting time
should be displayed on text box.

-- Tim Roberts, Providenza & Boekelheide, Inc.

timr@probo.com

Thank you sir for reply, actually i am new in Python. So i am trying to make different types of application(starting from smaller ones) using Python and WxPython. That is why i am asking these silly applications beacuse i am not getting any proper help from online.

···

On Tuesday, January 29, 2013 11:26:02 PM UTC+5:30, Tim Roberts wrote:

Priyank Khare wrote:

    I want to make a application in which there are two

buttons(say click & ok) and a text box.I want to generate
waiting time between clicking on two buttons and display in text
box.

For Example:-

    If i first click on CLICK Button and wait for few

seconds/minutes then click on OK Button. Then this waiting time
should be displayed on text box.

This is not a hard problem.  What do you already have?
-- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

If you download the wxPython Demo package, (on windows it is part of
the Docs & Demos package), for your version of wxPython you will
find that you have examples of how to use each control type and a
few things that are not actual controls. The source code is
displayed and can be edited in place to try things out - even on
windows.
It really is a brilliant resource that I can’t recommend enough and
I personally would like to say thank-you for putting it together to
Robin, Cody and all the others who have put it together and keep it
up to date.

···

On 30/01/13 05:17, Priyank Khare wrote:

  Thank you sir for reply, actually i am new in Python.

So i am trying to make different types of application(starting
from smaller ones) using Python and WxPython. That is why i am
asking these silly applications beacuse i am not getting any
proper help from online.


Steve Gadget Barnes

Thankyou so much sir for this brilliant suggestion. I will definately do that.

···

On Wednesday, January 30, 2013 11:15:46 AM UTC+5:30, Gadget Steve wrote:

On 30/01/13 05:17, Priyank Khare wrote:

  Thank you sir for reply, actually i am new in Python.

So i am trying to make different types of application(starting
from smaller ones) using Python and WxPython. That is why i am
asking these silly applications beacuse i am not getting any
proper help from online.
If you download the wxPython Demo package, (on windows it is part of
the Docs & Demos package), for your version of wxPython you will
find that you have examples of how to use each control type and a
few things that are not actual controls. The source code is
displayed and can be edited in place to try things out - even on
windows.

It really is a brilliant resource that I can't recommend enough and

I personally would like to say thank-you for putting it together to
Robin, Cody and all the others who have put it together and keep it
up to date.

  Steve *Gadget* Barnes