Abdur-Rahmaan Janhangeer:
> it seems that the original poster's mail went missing
>
> leugenpresse means lying press btw
>
> weird
>
> i doubt the author wanted to prank us by announcing i did this and that.
>
> Abdur-Rahmaan Janhangeer,
> Mauritius
> abdurrahmaanjanhangeer.wordpress.com
>
> O
from tkinter import * ; from tkinter import messagebox
import asyncio , random
async def one_url(url):
""" This is a multi threaded tkinter demo where tasks run in the background
and aim to not freeze the tk GUI, py v3.7"""
sec = random.randint(1, 8)
await asyncio.sleep(sec )
it seems that the original poster's mail went missing
leugenpresse means lying press btw
weird
i doubt the author wanted to prank us by announcing i did this and that.
Abdur-Rahmaan Janhangeer,
Mauritius
abdurrahmaanjanhangeer.wordpress.com
On 31 Dec 2017 5:00 am, "Wu Xi" wrote:
> from tkint
On 12/31/2017 8:52 PM, Terry Reedy wrote:
To do everything in the main thread, one can replace 'root.mainloop'
with loop.run_forever (in the main thread) and repeated root.update calls.
Wu Xi's example, rewritten more or less as suggested:
from tkinter import *
from tkinter import messagebox
On 12/30/2017 7:57 PM, Wu Xi wrote:
from tkinter import *#I cant see
anything wrong with this , it works like a charm
This imports about 200 names. A reader may not know which names are
builtins and which are imports. There may also be accidental name
Lawrence D’Oliveiro:
> On Sunday, December 31, 2017 at 10:23:32 PM UTC+13, Wu Xi wrote:
>>
>> I was originally referring to the handling of multi-tasking... which
>> some found a bit outlandish.
>>
>> I cannot see why, though.
>
> I just can’t help thinking that you are using two threads to handle
OK, I never figured out that "import *" business...
I was originally referring to the handling of multi-tasking via the
root.mainloop()
if __name__ == '__main__':
async_loop = asyncio.get_event_loop()# all in this loop
submain(async_loop)
business , which some found a
On Sun, Dec 31, 2017 at 8:03 PM, Abdur-Rahmaan Janhangeer
wrote:
> @Chris
>
> hum nice point
>
> it seems to be related to namespace convenience
>
> like
>
> 1 from x import *
>
> is likelier to cause conflicts than
>
> 2 import x
This is correct. Also, when you read the code, you can instantly t
@Chris
hum nice point
it seems to be related to namespace convenience
like
1 from x import *
is likelier to cause conflicts than
2 import x
Abdur-Rahmaan Janhangeer,
Mauritius
abdurrahmaanjanhangeer.wordpress.com
On 31 Dec 2017 05:00, "Wu Xi" wrote:
> from tkinter import *
On Sun, Dec 31, 2017 at 4:02 PM, Abdur-Rahmaan Janhangeer
wrote:
> for beginners import * is probably fine. Even if you are using most modules
> then too. else if module small maybe ok too
>
> just when you import just what you need, you save on resources .
>
Actually no; the entire module still
for beginners import * is probably fine. Even if you are using most modules
then too. else if module small maybe ok too
just when you import just what you need, you save on resources .
Abdur-Rahmaan Janhangeer,
Mauritius
abdurrahmaanjanhangeer.wordpress.com
On 31 Dec 2017 05:00, "Wu Xi" wrote:
11 matches
Mail list logo