a nice editor in 100 lines

2017-12-30 Thread Wu Xi
class writerKl(object): def __init__(self): import tkinter fromtkinter import messagebox fromtkinter import filedialog fromtkinter import Tk fromtkinter import Menu fromtkinter impor

Re: Anaconda Navigator : Add App

2017-12-30 Thread Wu Xi
that is a very slow manager. too slow. -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter,show pictures from the list of files in catalog-problem

2017-12-30 Thread Wu Xi
nothing works in ure soft everything breaks -- https://mail.python.org/mailman/listinfo/python-list

Re: Python: asyncio and Tkinter

2017-12-30 Thread Wu Xi
this is kinda interesting. seems there is no easy way though -- https://mail.python.org/mailman/listinfo/python-list

tkinter MP working like a charm

2017-12-30 Thread Wu Xi
from tkinter import *#I cant see anything wrong with this , it works like a charm from tkinter import messagebox #is there a serious concern doing things his way ? import asyncio , threading , random #

Re: tkinter MP working like a charm

2017-12-31 Thread Wu Xi
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

Re: a nice editor in 100 lines

2017-12-31 Thread Wu Xi
wxjmfa...@gmail.com: > Le dimanche 31 décembre 2017 10:33:03 UTC+1, wxjm...@gmail.com a écrit : >> Le samedi 30 décembre 2017 23:02:41 UTC+1, Wu Xi a écrit : > Addendum > > This one is also not working. > > https://www.reddit.com/

Re: a nice editor in 100 lines

2017-12-31 Thread Wu Xi
https://github.com/morten1982/crossviper > > nice find! > > > works smoothly here, except running the opened file kinda not path finding... > gotta be easy to fix. > take that back in xterm mode , path is no problem. nice IDE ! -- https://mail.python.org/mailman/listinfo/python-list

Mr. Conway in 50 lines of code

2017-12-31 Thread Wu Xi
import time , itertools __doc__=" Mr Conway_s Game Of Life simulation in python 2 and 3 " width = 55 ; height = 55# size of life habitat , e.g. a simulated meteorite, bolide , etc. vmap = [['D' for w in range(width)] for h in range(height)] # D = Dead at first def neighbou

Re: Copy-on-write friendly Python garbage collection

2017-12-31 Thread Wu Xi
breamore...@gmail.com: > An interesting write up on something that is incorporated into Python 3.7 > https://engineering.instagram.com/copy-on-write-friendly-python-garbage-collection-ad6ed5233ddf kewl py 3.7 does not fully make install here, but it built and works, as far as I can tell -- htt

Re: Copy-on-write friendly Python garbage collection

2017-12-31 Thread Wu Xi
they said they run the largest deployment of Django world-wide. be it as it may... many still consider the web guys to be the "funny people". Why did they not switch over to Erlang ? -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter MP working like a charm (Posting On Python-List Prohibited)

2017-12-31 Thread Wu Xi
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 thi

Re: Python: asyncio and Tkinter (Posting On Python-List Prohibited)

2017-12-31 Thread Wu Xi
Lawrence D’Oliveiro: > On Sunday, December 31, 2017 at 12:47:21 PM UTC+13, Wu Xi wrote: >> this is kinda interesting. seems there is no easy way though > > If I could do it for GTK/GLib <https://github.com/ldo/glibcoro>, I don’t see > why Tk should be hard. ;) well, har

you shortened it, but you broke it too... ;-)

2017-12-31 Thread Wu Xi
import time , itertools __doc__=" Mr Conway_s Game Of Life simulation in python 2 and 3 " width = 100 ; height = 50# size of life habitat , e.g. a simulated meteorite, bolide , etc. vmap = [['D' for w in range(width)] for h in range(height)] # D = Dead at first def neighbo

OK, now one main block only , but loop.run_forever() ? idk...

2017-12-31 Thread Wu Xi
from tkinter import *#I cant see anything wrong with the async_loop business here. It works like a charm. from tkinter import messagebox #is there a serious concern doing things his way ? import asyncio , threading , random

Re: Copy-on-write friendly Python garbage collection

2017-12-31 Thread Wu Xi
breamore...@gmail.com: > An interesting write up on something that is incorporated into Python 3.7 > https://engineering.instagram.com/copy-on-write-friendly-python-garbage-collection-ad6ed5233ddf Appearantly, Erlang is the way to go, when it comes to web frameworks. -- https://mail.python.org/m

Re: Copy-on-write friendly Python garbage collection

2018-01-01 Thread Wu Xi
breamore...@gmail.com: > On Sunday, December 31, 2017 at 6:19:13 PM UTC, Wu Xi wrote: >> breamoreboy: >>> An interesting write up on something that is incorporated into Python 3.7 >>> https://engineering.instagram.com/copy-on-write-friendly-python-garbage-collection-ad6

Re: tkinter MP working like a charm - almost...

2018-01-01 Thread Wu Xi
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 )

Re: Mr. Conway in 50 lines of code (Posting On Python-List Prohibited)

2018-01-01 Thread Wu Xi
the short versions are not equivalent, proggy won't work with them > def neighbours(point): > x,y = point > > yield x + 1 , y > yield x - 1 , y > yield x , y + 1 > yield x , y - 1 #this is proof that life can emerge > inside of computers and cellular automat

Re: tkinter MP working like a charm

2018-01-01 Thread Wu Xi
; abdurrahmaanjanhangeer.wordpress.com > > On 31 Dec 2017 5:00 am, "Wu Xi" wrote: > >> from tkinter import *#I cant see Lügen Presse = lying press , fake news makers - indeed. Using a real news reader, changing the post's topic

... (Posting On Python-List Prohibited)

2018-01-01 Thread Wu Xi
>>     (Posting On Python-List Prohibited) >> why ? > I'm posting to the usenet group comp.lang.python (an off-topic reply to an > off-topic remark, but it happens). > I've no idea what the prohibited part is about, if that's what you're posting > about. But there have been dozens o

Re: ... (Posting On Python-List Prohibited)

2018-01-01 Thread Wu Xi
> Blocking of spamming and trolling prevents oppression of people who want to > use the list, funded by PSF, for its purpose, discussion of Python. why are PSF funds privileged over anybody else's fund, which has zero privilege? -- https://mail.python.org/mailman/listinfo/python-list

web fw performance with Erlang

2018-01-01 Thread Wu Xi
>> Well, a little implicitly. Pointing out Erlang superiority in a pythonic >> newsgroup is, of course, heresy. > > Python is fourth in the latest TIOBE index, Erlang doesn't even make the top > 20, so in what way is it superior? > > Python doesn't need Pinky and the Brain in its quest to take