Hi Tutors,
I have a problem with the functions set_value which I could not find a
solution on the net. In my output below, I was able to set_value at the
first loop but not the second loop. The different check using print could
not identify what was the problem. I have attached my testset, functio
Dear Mr, Mrs,
During working with Python, I have a matter that I am finding a solution. I
am not an experience programmer in Python, so may I raise this question to
you? I really appreciate for any help.
I have a board that have a Real Time Clock (RTC) chip on that board. I need
to communicate wi
Hi tutor,
I'm trying to put my script with randomly colored letters (ANSI escape
code) into GUI but cant find any. I've tried tkinter but it isn't good
choice. Then i was searching for capabilities of PyQt4 again without
success. Thats why im writing this message. Is there any GUI that can print
wo
On 13/02/17 06:44, Thanh Tuan Le wrote:
> I have a board that have a Real Time Clock (RTC) chip on that board. I need
> to communicate with that RTC chip by Python.
>
> Following is my hardware info.
> - Board from Variscite:
> http://www.variscite.com/products/single-board-computers/dt6customboar
Yap Gerald wrote:
> I have a problem with the functions set_value which I could not find a
> solution on the net. In my output below, I was able to set_value at the
> first loop but not the second loop. The different check using print could
> not identify what was the problem. I have attached my t
On 13/02/17 07:23, Yap Gerald wrote:
> I have a problem with the functions set_value which I could not find a
> solution on the net.
This is very confusing. You don't use set_value() anywhere
in the code you posted? You don't describe what the actual
problem with set_ value() is.
And most of all
On 13/02/17 09:40, Freedom Peacemaker wrote:
> I'm trying to put my script with randomly colored letters (ANSI escape
> code) into GUI but cant find any. I've tried tkinter but it isn't good
> choice.
Why not? It can certainly do what you want. As can virtually
any other GUI toolkit. But program
Hello Python Tutor,
We are trying to use the random function in the Tkinter module in
PyCharmEDU 3.5. (on Macs running 10.11.6). However, we get a number of
error messages:
Here's the code:
from tkinter import *
import random
tk = Tk()
canvas = Canvas(tk, width=400, height=400)
canvas.pack()
On 13/02/2017 16:06, Lisa Hasler Waters wrote:
Hello Python Tutor,
We are trying to use the random function in the Tkinter module in
PyCharmEDU 3.5. (on Macs running 10.11.6). However, we get a number of
error messages:
Here's the code:
from tkinter import *
import random
tk = Tk()
canvas = C
Hello Python Tutor,
We are trying to use the random function in the Tkinter module in
PyCharmEDU 3.5. However, we get a number of error messages (see screen
shot):
[image: Inline image 1]
It runs fine when we use IDLE. But, we love PyCharmEDU as it is much more
user-friendly and so we hope to r
On 13/02/17 16:06, Lisa Hasler Waters wrote:
> We are trying to use the random function in the Tkinter module
> from tkinter import *
> import random
This looks for the random module and tries your local folder first.
If you have a file called random.py it tries to import that.
Based on your e
On 13/02/17 13:30, Lisa Hasler Waters wrote:
> It runs fine when we use IDLE. But, we love PyCharmEDU as it is much more
> user-friendly and so we hope to run the same programs in it as we can in
> IDLE.
That shouldn't make much difference unless PyCharm sets its
default folders differently?
BTW
Hi,
I have a .tcl file.Does anyone know how to load a .tcl file in to python?I
need to call the .tcl file in
a python program..Thanks!
Lily.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/ma
Forwarding to list.
---
Ive tried your suggestion but didnt work. Look this is my code and i
need to print final_word into GUI. Im working on Ubuntu 16.04
#! usr/bin/python3
from random import choice
from string import ascii_letters, digits
chars = ascii_
Dear, all,
I am a python novice and I am wondering if someone in the group could help me
with a easy question about .join() method!
I find out that the outcome for using .join() on a dictionary is totally
different than it using on list or string. for example,
>>> seq4 = {'he
On 13/02/17 19:37, Lily ANTONY wrote:
> I have a .tcl file.Does anyone know how to load a .tcl file in to python?I
> need to call the .tcl file in
> a python program..Thanks!
In general you can't run code for one language in a
program written in another language. (There are a few
exceptions, usua
> On Feb 13, 2017, at 12:34, SIJIA CHEN wrote:
>
> I find out that the outcome for using .join() on a dictionary is totally
> different than it using on list or string. for example,
>
seq4 = {'hello':1,'good':2,'boy':3,'doiido':4}
print ':'.join(seq4)
> boy:good:doii
On 14/02/17 00:58, Alan Gauld forwarded:
> red = '\033[91m'
> yel = '\033[93m'
> blu = '\033[34m'
> grn = '\033[32m'
These are indeed the ANSI codes for the colours but ANSI
codes only work in an ANSI terminal and GUIs are not
ANSI terminals. Instead they have their own ideas on
colours and you n
On 13/02/17 18:34, SIJIA CHEN wrote:
> I find out that the outcome for using .join() on a dictionary is
> totally different than it using on list or string.
Not really, it just looks like that :-)
>
> >>> seq4 = {'hello':1,'good':2,'boy':3,'doiido':4}
> >>> p
> That's because dictionaries are not stored sequentially and the
> order of retrieval is not guaranteed - it can even change
> during the execution of a program so you should never
> depend on it. That's because dictionaries are optimised
> for random access via the keys not to be iterated over.
20 matches
Mail list logo