Re: [Tutor] Tkinter class question - refinement

2017-04-07 Thread Phil
On Sat, 8 Apr 2017 02:00:38 +1000 Phil wrote: If I define "e" lists before the class then everything works as I had expected, however, I don't that's technically correct. Or is it? -- Regards, Phil ___ Tutor maillist -

[Tutor] Tkinter class question

2017-04-07 Thread Phil
Thank you for reading this. I've progressed a little further but I'm now having a problem knowing when to use the "self" reference. In the following code, the function "ckeck" is called without the need to press the "check" button. This didn't occur before I sprinkled "selfs" into the code and

Re: [Tutor] want to set IDLE setting to default.

2017-04-07 Thread Alan Gauld via Tutor
On 07/04/17 23:01, Tianjiao Cui wrote: > Hi, all. I have met a very annoying issue that i messed up with IDlL > configuration. I changed "run" key in settings but i found it does not work > and then i tried to reset it to default but i failed. You need to give us more detailed descriptions of

[Tutor] want to set IDLE setting to default.

2017-04-07 Thread Tianjiao Cui
Hi, all. I have met a very annoying issue that i messed up with IDlL configuration. I changed "run" key in settings but i found it does not work and then i tried to reset it to default but i failed. Pls help me get rid of this problem because it has been bothering me for a while. Thanks. Chris

Re: [Tutor] [Python 3.5] TypeError: a bytes-like object is required, not 'str' PICKLE

2017-04-07 Thread Alan Gauld via Tutor
Please always send the full error trace not just the last line. The message is full of useful details which we can't currently see. On 07/04/17 09:28, Allan Tanaka via Tutor wrote: > Hi > I have added b so that it translates into bytes object. save_cPickle part is > not problem... > But i

Re: [Tutor] Tkinter grid question

2017-04-07 Thread Alan Gauld via Tutor
On 07/04/17 11:08, Phil wrote: > ...In this case I become confused because had expected [][] > to be the same as a C two dimensional array. It is, sort of. If you set the data up correctly to start with :-) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/

Re: [Tutor] Tkinter grid question

2017-04-07 Thread Phil
On Fri, 07 Apr 2017 10:01:21 +0200 Peter Otten <__pete...@web.de> wrote: > > e = [None] * 6 , [None] * 2 > > In the above line you are creating a 2-tuple consisting of two lists: > > >>> [None]*6, [None]*2 > ([None, None, None, None, None, None], [None, None]) > > What you want is a list of

Re: [Tutor] [Python 3.5] TypeError: a bytes-like object is required, not 'str' PICKLE

2017-04-07 Thread Peter Otten
Allan Tanaka via Tutor wrote: > Hi > I have added b so that it translates into bytes object. save_cPickle part > is not problem... But i still get an error when coming into load_cPickle > for this function: Dataset.save_part_features('categorical_counts', >

Re: [Tutor] Tkinter grid question

2017-04-07 Thread Phil
On Fri, 7 Apr 2017 10:08:40 +0100 Alan Gauld via Tutor wrote: > Peter has already answered the problem but I'd like > to point out how he used the interactive prompt >>> to > demonstrate what was going wrong. Thank you Alan. The >>> prompt, print() and Duckduckgo do get a good

Re: [Tutor] Network Sniffing on Windows with Python 3.6

2017-04-07 Thread George Fischhof
2017-04-07 7:07 GMT+02:00 Some Developer : > Hi, > > This is more a query about where to look for information rather than > asking for specific code. > > There is a game that passes data over the network and I want to sniff the > network protocol used by the game to

[Tutor] [Python 3.5] TypeError: a bytes-like object is required, not 'str' PICKLE

2017-04-07 Thread Allan Tanaka via Tutor
Hi I have added b so that it translates into bytes object. save_cPickle part is not problem... But i still get an error when coming into load_cPickle for this function: Dataset.save_part_features('categorical_counts', Dataset.get_part_features('categorical')) although i have defined b in

Re: [Tutor] Tkinter grid question

2017-04-07 Thread Alan Gauld via Tutor
On 07/04/17 03:09, Phil wrote: > Thank you for reading this. > > This is my first attempt at using Tkinter and I've quickly run into a problem. > Peter has already answered the problem but I'd like to point out how he used the interactive prompt >>> to demonstrate what was going wrong. You

Re: [Tutor] Network Sniffing on Windows with Python 3.6

2017-04-07 Thread Alan Gauld via Tutor
On 07/04/17 06:07, Some Developer wrote: > How would I go about writing a Python 3.6 script for Windows that would > sniff the network traffic and take the individual packets and then > reassemble them into something that is useful data? That is definitely possible using Python although it is

Re: [Tutor] Tkinter grid question

2017-04-07 Thread Peter Otten
Phil wrote: > Thank you for reading this. > > This is my first attempt at using Tkinter and I've quickly run into a > problem. > > If e is a one dimensional list then all is OK and I can delete and insert > entries. The problem comes about when the list is made two dimensional, as > follows: >

[Tutor] Tkinter grid question

2017-04-07 Thread Phil
Thank you for reading this. This is my first attempt at using Tkinter and I've quickly run into a problem. If e is a one dimensional list then all is OK and I can delete and insert entries. The problem comes about when the list is made two dimensional, as follows: from tkinter import *