Including the list...
- Original Message
From: Que Prime <[EMAIL PROTECTED]>
To: Alan Gauld <[EMAIL PROTECTED]>
> Thank you Alan, but I'm still having difficulty.
> I think you mean this but there must be something that I'm misunderstanding.
>
> print "Creating txt file"
> tfile
"max baseman" <[EMAIL PROTECTED]> wrote
> scr.sddch(1,0,population) # here is ware i think I'm having problems
> also would like this to be centered
Try this:
scr.addchr(max_x/2,max_y/2, str(population)[0])
> traceback (most recent call last):
> file "population.py", line 15, in
> scr.addch
ok after reading a few tutorials i think i know enough to write my
program
here it is
not commented yet though sorry:
import curses
from time import sleep
scr=vurses.initscr()
population=0
seconds=0
try:
scr.nodelay(1)
scr.leaveok(0)
max_y, max_x = scr.getmaxyx()
elis aeris wrote:
> is it possible to do patial window title?
Partial window title? ;-)
Sure, have a look at this thread:
http://aspn.activestate.com/ASPN/Mail/Message/python-win32/3012629
and take a look at pywinauto, as well:
http://sourceforge.net/projects/pywinauto
https://lists.sourceforg
On 13/07/07, Dave Kuhlman <[EMAIL PROTECTED]> wrote:
> And, I have a question -- If you look at the example of the
> iterative (non-recursive) generator (the Doubler class), you will
> see that it walks a list, not a tree. That's because I was *not*
> able to figure out how to implement a non-recu
On 7/11/07, Andre Roberge <[EMAIL PROTECTED]> wrote:
It is a standard convention. Lots of tools are built on the
assumption that translatable strings are going to be enclosed in
_(...)
These tools extract the strings from programs, and put them in files
(.po) that are easily editable by human
I find iterators and generators fascinating. So, in order to try
to understand them better myself, I've written up some notes. I'm
hoping that these notes might help someone new to the generators
and iterators in Python. You can find it here:
http://www.rexx.com/~dkuhlman/python_comments.ht
"Que Prime" <[EMAIL PROTECTED]> wrote
> Here is what I have so far but can't seem to get the loop and
> write correct.
I suspect you have used another language before and
Python's for loop is foxing you.
> print "Creating txt file"
> tfile = open("25.txt", "w")
>
> for i in range(25):
>
I'm trying to create a program that creates a file and write the number for
each line. Here is what I have so far but can't seem to get the loop and
write correct.
Thanks in advance.
print "Creating txt file"
tfile = open("25.txt", "w")
for i in range(25):
x = int(1)
tfile.writelines("x
>>
>> > Do you know of any service or person that could do a code review
>> > for me?
>>
>> Perhaps if you were more specific about what you are looking for in the
>> review? If you merely want something to check your code for possible
>> errors and how well you stick to standards, then look i
taserian schrieb:
> I've been programming for years before encountering Pythoin, but in
> much more verbose languages, and I appreciate the fact that Python is
> so terse and still accomplishes so much. Still, I have difficulty
> thinking in Python, and tend to revert to longer programs for what
On 7/12/07, Adam A. Zajac <[EMAIL PROTECTED]> wrote:
> Do you know of any service or person that could do a code review
> for me?
Perhaps if you were more specific about what you are looking for in the
review? If you merely want something to check your code for possible
errors and how well
"taserian" <[EMAIL PROTECTED]> wrote
> I'd like to see how I could improve the program below for this, and
> make it
> more Python-ish.
>
> = = = = START
>
> def decompose(longword):
>word1 = longword[0::2]
>word2 = longword[1::2]
>return (word1, word2)
This seems OK to me.
> wordl
On Thu, 2007-07-12 at 13:04 +0100, Michael Connors wrote:
> Hi,
> I was following the thread on about the _("xx") thingy.
> Since then I played around a bit with underscores at the console and
> it seems to me that if you execute code with a return value but you
> dont save the result, then _ is a
I've been programming for years before encountering Pythoin, but in much
more verbose languages, and I appreciate the fact that Python is so terse
and still accomplishes so much. Still, I have difficulty thinking in Python,
and tend to revert to longer programs for what seems to be simple tasks.
S
> Do you know of any service or person that could do a code review
> for me?
Perhaps if you were more specific about what you are looking for in the
review? If you merely want something to check your code for possible
errors and how well you stick to standards, then look into pylint or
pychec
Hi,
I was following the thread on about the _("xx") thingy.
Since then I played around a bit with underscores at the console and it
seems to me that if you execute code with a return value but you dont save
the result, then _ is a pointer to this value.
Is that correct?
4
4
print _
4
So if
"max ." <[EMAIL PROTECTED]> wrote
> hello all sorry but i just cant seem to get my head around curses
I know the feeling it took me a while too.
> iv read a few of the tuts out there and get what there saying
> but i cant write my own
Can you tell us
a) What OS are you using - Curses only reall
18 matches
Mail list logo