What is the "Unpacking Arguments List" rule?

2018-06-03 Thread Jach Fong
I had read "More on Defining Functions" sections of "The Python Tutorial" carefully yesterday. One thing in the example code(Re: How can an int be '+' with a tuple?) puzzles me again. It's the line 19: def progress(*any): threadQueue.put((onProgress, any + context)) action

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-03 Thread Steven D'Aprano
On Sun, 03 Jun 2018 16:36:12 -0700, bellcanadardp wrote: > hello peter ...how exactly would i solve this issue .i have a script > that works in python 2 but not pytho3..i did 2 to 3.py ...but i still > get the errro...character undefieed..unicode decode error cant decode > byte 1x09 in line 74

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-03 Thread bellcanadardp
On Tuesday, 22 May 2018 17:23:55 UTC-4, Peter J. Holzer wrote: > On 2018-05-20 15:43:54 +0200, Karsten Hilbert wrote: > > On Sun, May 20, 2018 at 04:59:12AM -0700, bellcanada...@gmail.com wrote: > > > > > On Saturday, 19 May 2018 19:48:20 UTC-4, Skip Montanaro wrote: > > > > As Chris indicated,

Re: tkinter (ttk) combobox dropdown text is white on white

2018-06-03 Thread Christian Gollwitzer
Am 03.06.18 um 21:54 schrieb Jim Lee:> import tkinter as tk from tkinter import ttk root = tk.Tk() cb = ttk.Combobox(root) cb.grid(row=0, column=0, sticky='NSEW') cb['values'] = ['one', 'two', 'three', 'four'] root.mainloop() The text of the values in the combobox dropdown list is white on whi

tkinter (ttk) combobox dropdown text is white on white

2018-06-03 Thread Jim Lee
Given the following snippet (Python 3.6.5, Tk 8.6.8): import tkinter as tk from tkinter import ttk root = tk.Tk() cb = ttk.Combobox(root) cb.grid(row=0, column=0, sticky='NSEW') cb['values'] = ['one', 'two', 'three', 'four'] root.mainloop() The text of the values in the combobox dropdown list i

Attachments (was: How can an int be '+' with a tuple?)

2018-06-03 Thread Peter J. Holzer
On 2018-06-03 13:57:26 +1000, Ben Finney wrote: > (For good reasons, attachments are dropped when messages are distributed > on the forum.) By "the forum" you mean Gmane? (I got the attachment over the mailing list) hp -- _ | Peter J. Holzer| we build much bigger, better disaste

add me

2018-06-03 Thread gamesland5108
i am saran. i want to learn python programming. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to move the scrollbar to inside the text widget

2018-06-03 Thread Cousin Stanley
moidee...@gmail.com wrote: > I am a Newbie > > I have this code > > from tkinter import * > > root = Tk() > root.geometry("1200x1000+30+30") > # width x height + x_offset + y_offset: > T = Text(root, height=10, width=100) > T.place(x=20, y=30) > for i in range(40): >T.insert(END, "This is l

Problem with pickle in zodb

2018-06-03 Thread Etienne Robillard
Hi, Any ideas why this is happening ? erob@marina:/home/www/open-neurosecurity.org/trunk$ schevo editor zodb://127.0.0.1:4545 07:32:16 environ  No en_CA translation found for domain kiwi 07:32:16 environ  No en_CA translation found for domain gazpacho libschevo 4.0.1 ::

Re: ipython does not work with latest version of prompt-toolkit

2018-06-03 Thread Cecil Westerhof
Chris Warrick writes: > On Sun, 3 Jun 2018 at 10:32, Cecil Westerhof wrote: >> >> When executing: >> pip3 list --no-cache-dir --outdated >> >> I got: >> prompt-toolkit 1.0.152.0.1wheel >> PyGObject 3.28.23.28.3 sdist >> youtube-dl 2018.5.30 2018.6.2 wheel >

Re: ipython does not work with latest version of prompt-toolkit

2018-06-03 Thread Chris Warrick
On Sun, 3 Jun 2018 at 10:32, Cecil Westerhof wrote: > > When executing: > pip3 list --no-cache-dir --outdated > > I got: > prompt-toolkit 1.0.152.0.1wheel > PyGObject 3.28.23.28.3 sdist > youtube-dl 2018.5.30 2018.6.2 wheel > > So I executed: > pip3 insta

ipython does not work with latest version of prompt-toolkit

2018-06-03 Thread Cecil Westerhof
When executing: pip3 list --no-cache-dir --outdated I got: prompt-toolkit 1.0.152.0.1wheel PyGObject 3.28.23.28.3 sdist youtube-dl 2018.5.30 2018.6.2 wheel So I executed: pip3 install --upgrade prompt-toolkit PyGObject youtube-dl This gave: Successf

Re: How can an int be '+' with a tuple?

2018-06-03 Thread Jach Fong
Forgive my ignorance of "*any" notation. I don't have real experience of using it in my codes so far, and didn't know those parameters were packed as a tuple:-( Steven D'Aprano 於 2018/6/3 下午 01:08 寫道: On Sun, 03 Jun 2018 04:59:34 +, Steven D'Aprano wrote: On Sun, 03 Jun 2018 10:55:04 +080