Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99636
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-11-27 03:14 -0800 |
| References | <dc290806-c537-4546-b802-88dff14d81c0@googlegroups.com> <mailman.169.1448615930.20593.python-list@python.org> |
| Message-ID | <f4cf8b4f-94e7-4d97-b144-65f59c20fbc1@googlegroups.com> (permalink) |
| Subject | Re: python response slow when running external DLL |
| From | jfong@ms4.hinet.net |
Peter Otten at 2015/11/27 UTC+8 5:19:17 PM wrote:
Hi! Peter, thanks for your prompt reply.
> What does var_status.set() do? If it writes to stdout you may just need to
> flush().
var_status is a StringVar which binds to a lable's textvariable. I use this label as the status bar to show message.
> Do you see the same behaviour when you replace mydll.SayHello() with
> something simple like time.sleep(1)?
I use time.sleep(3) to replace mydll.SayHello(), still get the same.
> As a general remark keep your test scripts as simple as possible. Example:
> If
>
> import mydll
> print("Download...", end="")
> mydll.SayHello()
> print("OK")
>
> showed the same behaviour it would be the ideal test script.
I run the above statements in a test file, it works as expected. I can see "Download..." and then "OK".
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python response slow when running external DLL jfong@ms4.hinet.net - 2015-11-26 23:51 -0800
Re: python response slow when running external DLL Peter Otten <__peter__@web.de> - 2015-11-27 10:18 +0100
Re: python response slow when running external DLL jfong@ms4.hinet.net - 2015-11-27 03:14 -0800
Re: python response slow when running external DLL Peter Otten <__peter__@web.de> - 2015-11-27 13:20 +0100
Re: python response slow when running external DLL jfong@ms4.hinet.net - 2015-11-27 23:37 -0800
Re: python response slow when running external DLL Peter Otten <__peter__@web.de> - 2015-11-28 11:13 +0100
Re: python response slow when running external DLL jfong@ms4.hinet.net - 2015-11-28 18:55 -0800
Re: python response slow when running external DLL jfong@ms4.hinet.net - 2015-11-30 17:03 -0800
Re: python response slow when running external DLL Peter Otten <__peter__@web.de> - 2015-12-01 12:01 +0100
Re: python response slow when running external DLL jfong@ms4.hinet.net - 2015-12-01 19:58 -0800
Re: python response slow when running external DLL Laura Creighton <lac@openend.se> - 2015-11-28 11:51 +0100
Re: python response slow when running external DLL jfong@ms4.hinet.net - 2015-11-28 19:04 -0800
Re: python response slow when running external DLL Laura Creighton <lac@openend.se> - 2015-11-27 13:49 +0100
csiph-web