Hi Mike and everyone who replied to the tutor question re: GUI ideas for
Python.
Really value all the ideas and suggestions...that is very helpful! Thanks
for taking time to reply with so much great information.
We're just in wind down mode/rush for our close of school year ...but will
really enj
Oh, one more thing on this topic... there are tutorial videos available for
PySimpleGUI, both basic and advanced.
Basic 5 video series:
https://www.youtube.com/playlist?list=PLl8dD0doyrvHMoJGTdMtgLuHymaqJVjzt
Additional 9 in-depth videos:
https://www.youtube.com/playlist?list=PLl8dD0doyrvHMoJGTd
Hello Matthew,
Although, its not for Graphics, I have noticed that
http://www.pythontutor.com is a good place that can come in handy for
students who are new to programming.
It gives a graphical view of how memory is allocated for variables and how
functions are invoked in a program.
I have seen
I've liked turtle and make my graphing more interesting by asking for user
input such as dimensions, then graph automatically.
One starter source for using pygame graphics is
https://inventwithpython.com/pygame/
It jumps into game writing very quickly, but provides explanations of
commands.
The o
On Wed, Dec 05, 2018 at 11:39:49AM +1100, Matthew Polack wrote:
> Hi All,
>
> We're using Python with our Year 9 and 10 students to teach programming.
Yay! And I see you're a fellow Aussie :-)
> I've started with basic console programming...doing simple games like a
> quiz game etc.
>
> Studen
On 05/12/2018 00:39, Matthew Polack wrote:
> Can anyone recommend any ways of integrating 'graphics' but in a simpler
> way.
>
Have you considered the turtle module.
Its limited to drawing shapes but does give some immediate results.
You can of course create functions to draw more sophisticated
On 01/08/18 14:17, Matthew Polack wrote:
>
> c:\Python>python crops3.py
> Traceback (most recent call last):
> File "crops3.py", line 30, in
> filemenu.add_command(label="Show", command=self.showImg)
> NameError: name 'self' is not defined
The problem with cutting and pasting/copying code..
On Mon, Feb 03, 2014 at 04:35:58PM -0800, josh Malone wrote:
> Hi, I'm very new to programming and python is my first language. I'm
> currently enrolled in a class at Oregon State University where we are
> taught to program in python. I'm stuck on one problem and i know what i
> want to do... i jus
josh Malone Wrote in message:
> ___
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
First thing is to figure your goal. "Model" might mean anything
from "figur
> >
> > any of the tutors here can help you, not just me! :-)
>
> >
> > once you provide the server code and output, people may be able to
> > help you better.
> Agreed. It depends on firewalls between the two IP addresses. Also, the
> Linux server may have IP tables installed which might prevent
On 03/28/2012 02:40 PM, wesley chun wrote:
hi xianming,
any of the tutors here can help you, not just me! :-)
once you provide the server code and output, people may be able to
help you better.
best regards,
-- wesley
Agreed. It depends on firewalls between the two IP addresses. Also, th
Xianming,
On Mon, 2012-03-19 at 18:38 +1100, Yan, Xianming wrote:
> Hello all,
>
> I'm a new learning to python and does not know python anything at all.
>
> Anyone can recommend a book about python to read? I prefer a paper-based
> book, not online book.
>
> By the way, I'm from china, I hop
On 19 Mar 2012 11:42, "Yan, Xianming"
wrote:
>
> I'm following http://docs.python.org/tutorial/interpreter.html to type in
the first script into python.
>
> According to the link, I typed below:
>
> >>> the_world_is_flat = 1
> >>> if the_world_is_flat:
> ... print "Be careful not to fall off!"
On 19/03/12 07:38, Yan, Xianming wrote:
Hello all,
I'm a new learning to python and does not know python anything at all.
Anyone can recommend a book about python to read? I prefer a paper-based book,
not online book.
By the way, I'm from china, I hope the book is Chinese--:)--Reading in Chin
你好 Xianming,
I have a book -- *Python 核 心 编 程 (第二版)* -- that is for people who already
program but want to learn Python. It is available in China from at least 3
online stores:
http://www.china-pub.com/39969
http://www.amazon.cn/dp/bkbk835890
http://mall.sina.com.cn/product_1749023.htm
In the A
On 03/02/12 05:05, Che M wrote:
is very bad form and I should refactor, and so I am beginning to put
these functions in their own module so that I can import the module and
its functions when I need it; they will all be in one place and only
only place.
While that's tempting it is better if yo
Che M wrote:
>
> I have a bunch of functions that do various utility-type tasks in an
> application (such as prettifying date strings, etc.), and they are used in
> many modules. Much of the time, I have just been lazily copying and
> pasting the functions into whichever modules need them. I re
Thank you very much and thank you Alan.
Definitely I will take a look. I would prefer the paid version and I
will need the support.
On 12/12/10, Knacktus wrote:
> Am 12.12.2010 19:16, schrieb Alan Gauld:
>>
>> "cajsdy" wrote
>>> Either paid or free open source is fine.
>>> I'm creating automati
Am 12.12.2010 19:16, schrieb Alan Gauld:
"cajsdy" wrote
Either paid or free open source is fine.
I'm creating automation frame work. Idealy it includes:
test plan management,
test manager across windows, unix, linux, solaris and other os.
UML documentation for python scripts
IDE tool for pyth
"cajsdy" wrote
Either paid or free open source is fine.
I'm creating automation frame work. Idealy it includes:
test plan management,
test manager across windows, unix, linux, solaris and other os.
UML documentation for python scripts
IDE tool for python on windoes and linux
UI design tool fo
"Steven D'Aprano" wrote
Pythoncard is a desktop application based on Apple's much-loved and
never forgotten Hypercard (may it rest in peace!).
And Dabo is based on Visual FoxPro.
Just a caveat:
Both of these are really development tools rather than applications in
the normal sense - alth
>
> The Reddit website is written in Python, as is the EVE Online massive
> multiplayer game, although I doubt the source code for them are
> available.
>
Actually, Reddit has made it's source available and has included a HOWTO
install Reddit
On Thu, 29 Apr 2010 08:06:30 pm Kevin Kirton wrote:
> Hi all,
>
> I was just wondering if anyone here can recommend any freeware
> program that has been written in python and for which the source code
> is available.
The Red Hat Package Manager (rpm) is written in Python.
The original BitTorrent
Alan Gauld wrote:
> But if thats not enough try both sourceforge and the PyGame web sites.
> On sourceforge search for projects using python... DIA is one that springs
> to mind(a Visio type drawing program)
>
> PyGame has lots of Python games you can download, several with source.
PyGame looks p
On Thu, 29 Apr 2010 13:04:20 +0100
"Alan Gauld" wrote:
> IDLE?
> The IDE that comes with Python ias wtten in Python and the
> source comes as part of the standard library.
There's also a free software programming editor --editra, I guess-- written in
and mainly for python. (But I would not re
Christian Witts wrote:
> Maybe look through projects at Freshmeat [1].
>
> [1] http://freshmeat.net/tags/python
That's exactly what I was looking for. I've already selected a few
small programs and now I plan on installing them, seeing how they
operate from a user's perspective, then I'll take a
"Kevin Kirton" wrote
I was just wondering if anyone here can recommend any freeware program
that has been written in python and for which the source code is
available.
IDLE?
The IDE that comes with Python ias wtten in Python and the
source comes as part of the standard library.
But if t
Kevin Kirton wrote:
Hi all,
I was just wondering if anyone here can recommend any freeware program
that has been written in python and for which the source code is
available.
Basically I just want to see a program that does something relatively
simple and straightforward, but something that is
Hello Alan, Steven,
I was narrow minded about this topic and did not see the benefits of
these multiple Python
implementations. You opened my eyes.
Regards
Karim
Steven D'Aprano wrote:
On Tue, 2 Mar 2010 11:25:44 am Andreas Kostyrka wrote:
Furthermore I do not think that most of the "c
Hello,
Thanks a lot for this state of the art of the language, very instructive.
I see now top of the iceberg ;o)
Karim
Steven D'Aprano wrote:
On Tue, 2 Mar 2010 07:07:57 am Karim Liateni wrote:
Thanks for this precision!
I'm using standard python so this is ok!
Why people use proprietar
On Tue, 2 Mar 2010 11:25:44 am Andreas Kostyrka wrote:
> Furthermore I do not think that most of the "core" community has a
> problem with the alternate implementations, as they provide very
> useful functions (it helps on the architecture side, because it
> limits somewhat what can be done, it hel
> > Why people use proprietary python ?
Well, AFAIK I know, all more or less popular non-Ansi-C implementations of
Python are free. (Jython is, IronPython too, although I've never checked in
detail, stackless is, PyPy is too, ...)
> > It's better to spent energy to participate with the core deve
> Why people use proprietary python ?
Because it does something normal Python doesn't. For example I often use
Jython (Python implemented in Java instead of C) because it allows me to
import Java classes and test them. It also allows me to rapidly build Java
classes that I can integrate as te
On Tue, 2 Mar 2010 07:07:57 am Karim Liateni wrote:
> Thanks for this precision!
> I'm using standard python so this is ok!
> Why people use proprietary python ?
> To have more trouble ? To be different from the rest of community ?
Python is a language, but there can be many different implementati
Thanks for this precision!
I'm using standard python so this is ok!
Why people use proprietary python ?
To have more trouble ? To be different from the rest of community ?
Anyway in opensource people do whatever they want but you know
multiple version that was the same before Common C or Lisp it
"Karim Liateni" wrote
def getLines(file):
try: lines = open(filename).readlines() ; return lines
except IOError: #handle error
but in the second 'lines = open(filename).readlines()'
I don't hold indirectly a reference to the file? Please, could you
explain more this point?
Sure, the l
Lie Ryan wrote:
On 03/01/10 02:49, Karim Liateni wrote:
Lie Ryan wrote:
On 03/01/10 01:12, Alan Gauld wrote:
def getLines(file):
"""Get the content of a file in a lines list form."""
f = open(file, 'r')
lines = f.readlines()
f.close()
return lines
On 03/01/10 02:49, Karim Liateni wrote:
> Lie Ryan wrote:
>> On 03/01/10 01:12, Alan Gauld wrote:
>>
def getLines(file):
"""Get the content of a file in a lines list form."""
f = open(file, 'r')
lines = f.readlines()
f.close()
return lines
>>>
Lie Ryan wrote:
On 03/01/10 01:12, Alan Gauld wrote:
def getLines(file):
"""Get the content of a file in a lines list form."""
f = open(file, 'r')
lines = f.readlines()
f.close()
return lines
I'm not sure these functions add enough value to ghave them. I';d
probably just use
Hello Alan,
Alan Gauld wrote:
"Karim Liateni" wrote
It concatenates both parameters and include files with the same
parameters definitions. That trigs errors during simulation and
it complains about parameters double definition.
I'd suggest you construct a dictionary based on the param na
On 03/01/10 01:12, Alan Gauld wrote:
>
>> def getLines(file):
>> """Get the content of a file in a lines list form."""
>> f = open(file, 'r')
>> lines = f.readlines()
>> f.close()
>> return lines
>
> I'm not sure these functions add enough value to ghave them. I';d
> probably just use
>
"Karim Liateni" wrote
It concatenates both parameters and include files with the same
parameters definitions. That trigs errors during simulation and
it complains about parameters double definition.
I'd suggest you construct a dictionary based on the param names
You can check before you add c
nitin chandra wrote:
On Mon, Oct 19, 2009 at 1:58 AM, nitin chandra wrote:
Hello Everyone,
i am compiling Python 2.6.2 from source and have successfully been
able to cross at least that is what i am thinking .
./configure and make but i am facing a peculiar problem in
installing
On Mon, Oct 19, 2009 at 1:58 AM, nitin chandra wrote:
> Hello Everyone,
>
> i am compiling Python 2.6.2 from source and have successfully been
> able to cross at least that is what i am thinking .
> ./configure and make but i am facing a peculiar problem in
> installing it this time.
These are really valuable info. I will try.
Thanks a lot.
On Fri, Feb 6, 2009 at 7:44 PM, Kent Johnson wrote:
> On Fri, Feb 6, 2009 at 4:11 AM, Daniel wrote:
> > Hi Tutors,
> >
> > I want to use python to finish some routine data processing tasks
> > automatically (on Windows).
> >
> > The ma
Kent Johnson wrote:
On Fri, Feb 6, 2009 at 7:21 AM, spir wrote:
see also
http://en.wikipedia.org/wiki/Python_Pipelines
That looks pretty dead, or at least unpublished. The google code
project is almost two years old but it contains no code.
It is sluggish but not dead. The code
spir wrote:
Le Fri, 6 Feb 2009 06:44:11 -0500,
Kent Johnson a écrit :
My first thought was, use shell pipelines and bash. Then I remembered,
David Beazley shows how to use generators to implement a processing
pipeline in Python:
http://www.dabeaz.com/generators-uk/
see also
http://en
On Fri, Feb 6, 2009 at 7:21 AM, spir wrote:
> see also
> http://en.wikipedia.org/wiki/Python_Pipelines
That looks pretty dead, or at least unpublished. The google code
project is almost two years old but it contains no code.
Kent
___
Tutor maillist -
Le Fri, 6 Feb 2009 06:44:11 -0500,
Kent Johnson a écrit :
> My first thought was, use shell pipelines and bash. Then I remembered,
> David Beazley shows how to use generators to implement a processing
> pipeline in Python:
> http://www.dabeaz.com/generators-uk/
see also
http://en.wikipedia.org/w
On Fri, Feb 6, 2009 at 4:11 AM, Daniel wrote:
> Hi Tutors,
>
> I want to use python to finish some routine data processing tasks
> automatically (on Windows).
>
> The main task could be split to sub small tasks. Each can be done by
> executing some small tools like "awk" or by some other python sc
Alan Gauld ha scritto:
---
voglio chiderti solo 1 cosa ... ma secondo te qualle e il miglior
programma X programmare???
grazie ...
da Cristian
-
Literally:
---
"I want to ask you only one thing... what's in your opinion the best
program to p
"Hansen, Mike" <[EMAIL PROTECTED]> wrote
Did you find anyone to traslate?
Yes thanks, Daniele (sp?) replied with a translation.
There are some Italian idiomatic things there so it confused
Google (and Babelfish!)
"I want chiderti only 1 thing... but according to you qualle
and better progr
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld
> Sent: Sunday, August 03, 2008 4:55 PM
> To: tutor@python.org
> Subject: [Tutor] Any Italian speakers?
>
> I received this message which Google tells me is Italian but then
> only gives a
I m really sorry if no one of you liked/agreed with the fridge analogy but
that's what my brain could come up with at the time, I have to say it's not
a very scientific argument. but I only meant to say that if you are piping
data into memory & this data is larger than that memory then there is no
On Thu, 17 Jul 2008, Monika Jisswel wrote:
> I see no problem, if you open very BIG files then your memory will get
> filled up & your system will halt,
I'm going to disagree with you on this one.
First, in general, it is not the case that opening a very large file will
cause memory to be fille
"Monika Jisswel" <[EMAIL PROTECTED]> wrote...
I see no problem, if you open very BIG files then your memory will
get
filled up & your system will halt,
Only if you were to foolishly read the whole file into memory at once.
Early computers only had memories of a few kilobytes but could
process
I see no problem, if you open very BIG files then your memory will get
filled up & your system will halt,
can you buy more food than your fridge can handle , and write to a list
asking to invistigate the problem ?
2008/7/17 Terry Carroll <[EMAIL PROTECTED]>:
> On Thu, 17 Jul 2008, Monika Jisswel
On Thu, 17 Jul 2008, Monika Jisswel wrote:
> Well, you can check whether your system has reached its limits or not, but
> what for ?
So I can debug the problem.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
>
> I'm iterating through a vey large tarfile (uncompressed, it would be about
> 2.4G, with about 2.5 million files in it) and I can see from some external
> monitors that its virtual storage usage just grows and grows, until my
> whole system finally grinds to a halt after about 1.2 million member
On Wed, 16 Jul 2008, Terry Carroll wrote:
> The obvious thing to do is to also filter by PID, which is the second
> element; Of course that opens a new question: how to find one's own PID
> from within Python. More googling awaits.
And, while searching for that, I found out hwo to find mem
On Thu, 17 Jul 2008, John Fouhy wrote:
> tasklist is the Windows version of ps. You could try something like
> 'tasklist /FI "IMAGENAME eq python.exe"', though you'd then have to
> parse the output.
Thanks! I just found that too! (Alan's suggestiom made me thing of
googling for "ps equivalent
On 17/07/2008, Terry Carroll <[EMAIL PROTECTED]> wrote:
> ps doesn't show memory usage as far as I can tell (that may be a cygwin
> thing; I see some references online that suggest it can in some
> environments). I don't have top or vmstat, but I'll look into those.
Hmm, yeah, cygwin ps seems q
On Thu, 17 Jul 2008, Alan Gauld wrote:
> With cygwin you should have top, vmstat and of course ps.
> All of these can monitor system status,. top being very similar to
> XPs Task Manager process view but in a text window. vmstat will
> not tell you process IDs, just report total usage. And ps is s
"Terry Carroll" <[EMAIL PROTECTED]> wrote
Is there anything within Python (I'm on 2.5) that can check this?
Failing
that, are there any Windows/XP line-oriented commands that I could
invoke
and parse the output of? (I also have Cygwin installed, in case
there are
any gnu-based commands that
> I am new in Python area and want to know Python concepts with more deatils.
> Please suggest some good books on python.
Beginning Python, by Hetland is excellent for almost any level (I
think someone who has really mastered one language, and is currently
working as a programmer, can simply read
"Byte of python" by Swaroop [swaroopch.info] is a simple book for
starters,but never a alltime help book.If you are just a starter like me,you
can learn the ideas on python on looking to that and which will surely help
you to learn python in deep.
Its there at http://swaroopch.info/text/Byte_of_P
"Python in a nutshell" is a good one. Also Python docs are the all time
favorite.
On 1/4/07, deepak shingan <[EMAIL PROTECTED]> wrote:
Hi Folks,
I am new in Python area and want to know Python concepts with more
deatils.
Please suggest some good books on python.
Thanks in Advance
-Deepak
I'm no expert but I get the same response when I tried it.
I googled a bit and found this long chain of useful looking stuff:
http://www.velocityreviews.com/forums/t345123-how-to-receive-events-eg-user-mouse-clicks-from-ie.html
One possibility mentioned at the end is:
Adding win32gui.PumpW
Danny Yoo said:
>> So I take a look into the source code .But I get confused about so many
>> files and functions . I want to ask that is there any stuff about the
>> interpreter design and coding ?
>>
>
> [meta: my reply is really about Scheme, not Python. My apologies to the
> list, but it'
> So I take a look into the source code .But I get confused about so many
> files and functions . I want to ask that is there any stuff about the
> interpreter design and coding ?
[meta: my reply is really about Scheme, not Python. My apologies to the
list, but it's my honest answer.]
Hi Bo,
Th
* Alan Gauld <[EMAIL PROTECTED]> [051114 09:26]:
> I just stumbled across TurboGears:
>
> http://www.macdevcenter.com/pub/a/mac/2005/11/08/turbogears.html
>
> Its based on CheryPy which consistently gets good reviews but adds SQL
> access and XML templates. Sounds interesting, possibly even a Zo
Alan Gauld wrote:
> I just stumbled across TurboGears:
>
> http://www.macdevcenter.com/pub/a/mac/2005/11/08/turbogears.html
>
> Its based on CheryPy which consistently gets good reviews but adds SQL
> access and XML templates. Sounds interesting, possibly even a Zope rival
> for the medium size
Both!
See attachment
Regards,
Gregor
Shi Mu schrieb:
any code to draw parabola or curve?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Gregor Lingl
Reisnerstrasse 3/19
A-1030 Wien
Telefon: +43 1 713 33 9
Shi Mu wrote:
>any code to draw parabola or curve?
>
>
That question is so general and vague it's either unanswerable, or very
easy to answer.
I'll try the 'very easy' answer: yes, there is probably code somewhere
to draw a parabola or curve. Have you tried making a start on this
yourself? Di
You might want to search for how it fits together with twisted's reactor
http://www.google.com/search?q=twisted+glade+reactor
Luis.
On 10/15/05, Adam <[EMAIL PROTECTED]> wrote:
> I'm making a Twisted app that needs a client side GUI and GTK seems like the
> best way to go about this. Can anybody
On Sat, 2005-10-15 at 20:13 +0100, Adam wrote:
> I'm making a Twisted app that needs a client side GUI and GTK seems
> like the best way to go about this. Can anybody point me in the
> direction of any decent tutorials on how to use Glade with python and
> pyGTK.
> Thanks.
> Adam.
http://primates.
Replying to myself, I got some speedups by replacing:def makeArray1(matrix): result = matrix result[0][w/2] = 1 for row in range(h-1): last = result[row] next = result[row+1]
for i in range(w-1):
next[i] = rule[4*last[i-1]+2*last[i]+last[i+1]] next[
Hi John,Thanks for that suggestion.I tried replacing my matrix with a numpy array, and it was about 20% slower, but I just substituted one for the other, so that really isn't surprising. I didn't try with the built-in array, but I'm guessing that swapping out another container for lists would only
On 19/09/05, grouchy <[EMAIL PROTECTED]> wrote:
> I've been playing with generating 1-D cellular automata, and this is the
> fastest solution I've come up with so far.
I haven't dug deep into your code --- but, I wonder if the array
module might help?
--
John.
__
On Thu, 12 May 2005, Richard gelling wrote:
> fileToSearchFor = raw_input( "Type in the file name you want to search
> for: ")
>
> if fileToSearchFor in fileList:
> print "%s was found" % fileToSearchFor
> else:
> print "%s was not found" % fileToSearchFor
>
> Could someone explain to me
Kent Johnson wrote:
> Terry Carroll wrote:
>
>>Is there any way, from within Python, to cause the default browser
>>(Firefox, in my case) to be invoked with a specific URL?
>>
>>I'd like to do something like (totally made-up name and syntax):
>>
>>OpenBrowser("http://www.google.com/";)
>>
>>and
On Mon, 9 May 2005, Kent Johnson wrote:
> >>> import webbrowser
> >>> webbrowser.open("http://www.google.com/";)
Beautiful; just what I needed. Thanks.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Quoting Terry Carroll <[EMAIL PROTECTED]>:
> Is there any way, from within Python, to cause the default browser
> (Firefox, in my case) to be invoked with a specific URL?
If you're on Win32, try:
>>> import win32api
>>> win32api.ShellExecute(0, 'open', 'http://www.google.com/', None, '', 1)
Pa
Terry Carroll wrote:
> Is there any way, from within Python, to cause the default browser
> (Firefox, in my case) to be invoked with a specific URL?
>
> I'd like to do something like (totally made-up name and syntax):
>
> OpenBrowser("http://www.google.com/";)
>
> and have a new browser window
84 matches
Mail list logo