I don't know (now) how to solve your challenges below. But if I were
trying to figure this out, I would try to find more complex tkinter
example applications that contain some of the issues I'd be interested
in. Then I would dig into the code, find the relevant pieces, and
then start playing with
I'm looking for ideas here.
A working solution for my sudoku solver is a 9 x 9 grid of entry boxes but it
looks a bit basic. So I created a 9 x 9 grid on a canvas which looks much
better. I can display digits in the centre of the squares but entering the
digits from the keyboard seems to be bey
You most likely have no file named words.txt in the directory from
which you are running your code.
On Mon, Apr 17, 2017 at 10:12 PM, Tyler Seacrist wrote:
> Hello,
>
>
> How do I avoid this error message everytime I utilize wordlist =
> open("words.text") ?
>
wordlist = open("words.txt")
>
On 18/04/17 03:12, Tyler Seacrist wrote:
> How do I avoid this error message everytime I utilize wordlist =
> open("words.text") ?
>
wordlist = open("words.txt")
> Traceback (most recent call last):
> File "", line 1, in
> wordlist = open("words.txt")
> FileNotFoundError: [Errno 2] N
Hello,
How do I avoid this error message everytime I utilize wordlist =
open("words.text") ?
>>> wordlist = open("words.txt")
Traceback (most recent call last):
File "", line 1, in
wordlist = open("words.txt")
FileNotFoundError: [Errno 2] No such file or directory: 'words.txt'
>>> def ca
On Wed, Apr 19, 2017 at 10:19 AM, Peter Otten <__pete...@web.de> wrote:
> Steven D'Aprano wrote:
>
>> As I said, I haven't had a chance to try Peter's code, so it's possible
>> that he's solved all these problems. I'm judging by previous
>
> No, my simple code only "works" for read-only properties
On 19/04/17 11:35, Mohanad Ismail via Tutor wrote:
> Read data from serial and write to file 1 for 15 sec,
> after the 15 seconds continue writing the data on to
> file 2 for 15 seconds
>... each file should write for 15 seconds and stop for 15 seconds
> Code:
> #!/usr/bin/env python
> from date
On 19/04/17 08:43, Alan Gauld via Tutor wrote:
> Probably because it is such a rare use case and because
> its not that hard to do yourself if you really need it.
Having read Steven's post I'll retract the bit about
it being not that hard! :-)
But I still think its a fairly rare scenario. Until
Hello,
I have recently started using python and i have come to a halt while writing a
code and i was hoping someone out there can help me.
I am attempting to store a stream of data directly from a serial port onto
multiple files in sequence after x amount of time is elapsed.
for example :
Read da
Steven D'Aprano wrote:
> As I said, I haven't had a chance to try Peter's code, so it's possible
> that he's solved all these problems. I'm judging by previous
No, my simple code only "works" for read-only properties and only as long as
you don't overwrite the property by assigning to the attrib
On Wed, Apr 19, 2017 at 09:28:26AM +0200, Thomas Güttler wrote:
[code for a classproperty]
> Nice, if it is that simple.
>
> Is there a reason why this is not in the standard library?
I haven't had a chance to test Peter's classproperty code yet, but I
don't expect it to be that simple. People
On 19/04/17 03:21, Marilyn Davis wrote:
> connection.execute("SELECT * FROM BRIGHTEST")
>
> returns a , not a regular python
> sequence.
Pretty much everything inn SQL land uses cursor objects.
It's why best practice creates an explicit cursor for
executing statements rather than the impl8ici
On 19/04/17 08:28, Thomas Güttler wrote:
> Nice, if it is that simple.
>
> Is there a reason why this is not in the standard library?
Probably because it is such a rare use case and because
its not that hard to do yourself if you really need it.
But the standard library, like any open source pr
Thank you Alan, Steven and Peter,
So, this call:
connection.execute("SELECT * FROM BRIGHTEST")
returns a , not a regular python
sequence. I did not know that. And, the connection must still be alive
when you iterate it.
That is a very important tidbit of info.
The fix is to listify the Curso
Am 18.04.2017 um 13:17 schrieb Peter Otten:
Thomas Güttler wrote:
I would like to have read-only class properties in Python.
I found this
http://stackoverflow.com/questions/128573/using-property-on-classmethods
But there are a lot of discussions of things which I don't understand.
I want to b
15 matches
Mail list logo