I am trying to write a UI with text entry box for user input, buttons, and
a moving circle when clicked popping up a new UI window. I was thinking
Pygame, but didn't know how to show the text entry box. I am now using
Tkinter, which is easy for the widgets, but the problem is the moving
circle
Depending on what you're doing you could run into problems.
Areas that have been challenging for me in the past:
* Loading 64bit compiled .dll in a 32bit Python environment and vice versa.
* Reading registry entries. MS tried to be clever by introducing the
Wow6432Node reg key.
And I'm sure
Pythonists
I am trying to understand the difference between
a = b
b = a + b
and
a,b = b, a+ b
When used in my Fibonacci code the former generates 0,1,2,4,8,16,32 and the
later
Generates 0,1,1,2,3,5,8,13,21,34,55,89. The second is the sequence I want, but
I would
Like to understand the
On Mar 21, 2014 1:16 PM, Gary gwengst...@yahoo.com wrote:
Pythonists
I am trying to understand the difference between
a = b
You have overwitten a
b = a + b
and
a,b = b, a+ b
This one evaluates the right side first, then assigns the result to a and b
When used in my Fibonacci code the
Dear Pythonists
Here is the code
def fiba(n):
a = 0
b = 1
while a n :
print(a)
c = a + b
a = a +c
# 0,1,3,7,15,31,63
def fibc(n):
a = 0
On Fri, Mar 21, 2014 at 3:25 PM, Gary Engstrom gwengst...@yahoo.com wrote:
I am trying to understand function fibc code line a,b = b, a + b and would
like to see it written line by line
without combining multiply assignment. If possible. I sort of follow the
right to left evaluation of the
On 21/03/14 17:14, Gary wrote:
Pythonists
I am trying to understand the difference between
a = b
b = a + b
This does exactly what it says.
It first makes a and b identical then makes b equal
their sum, that is, b+b
and
a,b = b, a+ b
The second form is not always available in
On 21/03/14 03:31, cast fun wrote:
I am trying to write a UI with text entry box for user input, buttons,
and a moving circle when clicked popping up a new UI window. I was
thinking Pygame, but didn't know how to show the text entry box. I am
now using Tkinter, which is easy for the widgets, but
Please help. I have been search the internet to understand how to write a
simple program/script with python, and I did not do anything.
I have a file that look like this
ID 1
agtcgtacgt…
ID 2
acccttcc
.
.
.
in other words, it contains several IDs each one has a sequence of 'acgt'
On 21/03/2014 09:31, Mustafa Musameh wrote:
Please help. I have been search the internet to understand how to write a
simple program/script with python, and I did not do anything.
I have a file that look like this
ID 1
agtcgtacgt…
ID 2
acccttcc
.
.
.
in other words, it contains
Dear Jerry,
Thank you so much, once you see it it seems so clear, but to see it I might as
well be in the Indian Ocean. Got kinda close using temporary variable,but
didn't know enough to use del.
A lesson learn.
Sent from my iPad
___
Tutor maillist
On 21/03/14 09:31, Mustafa Musameh wrote:
Please help. I have been search the internet to understand how to write a
simple program/script with python, and I did not do anything.
There are ma y tutorials on how to write Python for every level
of programmer.
What is your level? If you can
Gary gwengst...@yahoo.com writes:
Pythonists
I am trying to understand the difference between
a = b
Retrieves the value referenced by ‘b’, then binds the name ‘a’ to the
value.
b = a + b
Evaluates the expression ‘a + b’, then binds the name ‘b’ to the result.
and
a,b = b, a+ b
On Fri, Mar 21, 2014 at 01:14:22PM -0400, Gary wrote:
Pythonists
I am trying to understand the difference between
a = b
b = a + b
and
a,b = b, a+ b
Try to evaluate the code in your head, as if you were the Python
interpreter. Starting with the first version:
a = b
This
On 21/03/14 21:21, Gary wrote:
Got kinda close using temporary variable,but didn't know enough to use del.
You don't really need to usae del, thats just being closer to what
Python does - ie not leaving any temporary variables lying around.
But in most programming languages you wouldn't
On 21Mar2014 20:31, Mustafa Musameh jmm...@yahoo.com wrote:
Please help. I have been search the internet to understand how to write a
simple program/script with python, and I did not do anything.
I have a file that look like this
ID 1
agtcgtacgt…
ID 2
acccttcc
.
.
.
in
On Fri, Mar 21, 2014 at 08:31:07PM +1100, Mustafa Musameh wrote:
Please help. I have been search the internet to understand how to
write a simple program/script with python, and I did not do anything.
I have a file that look like this
ID 1
agtcgtacgt…
ID 2
acccttcc
.
.
.
On 21/03/2014 21:39, Cameron Simpson wrote:
On 21Mar2014 20:31, Mustafa Musameh jmm...@yahoo.com wrote:
I would collect the statistics using a dictionary to keep count of
the characters. See the dict.setdefault method; it should be helpful.
Delightfully old fashioned but I'd now prefer
is there another way to print a PDF form python?
My problem is a PDF which is printed well by evince, but not with lp,
even not out of python using
os.system(lp some_options file.pdf)
Later on I have to build the PDF in a python program (using reportlab)
and then print it, even from the
19 matches
Mail list logo