Problem with difflib SequenceMatcher

2016-09-12 Thread Jay
MRX AFR FR 0SNT MLS T KP 0 KMNST MFMNT ALF" print src, '\n', trg, '\n', SM(None, trg, src).ratio() --- What could be the cause? Is there something I am doing wrong? Thanks in advance -- Regards Jay -- https://mail.python.org/mailman/listinfo/python-list

Re: writing a web client

2005-07-29 Thread Jay
thats pretty cool, could someone post a example program of a python web-based program? -- http://mail.python.org/mailman/listinfo/python-list

Re: writing a web client

2005-07-29 Thread Jay
thats pretty cool, could someone post a example program of a python web-based program? -- http://mail.python.org/mailman/listinfo/python-list

Hiding

2005-07-29 Thread Jay
Well, im not no expert on the python programming language but i just wanted to know if there was a quick way to hide certain things when programming in python. Such as, i wanted some music or sound effects with my python program. So, i type... print "Music is by blah blah" music-file = open(file c

Re: Hiding

2005-07-29 Thread Jay
thanks for the great info and urls, i have downloaded the pymedia module and playing around with it now. Thx alot -- http://mail.python.org/mailman/listinfo/python-list

Re: Hiding

2005-07-30 Thread Jay
but also, wat if i needed to hide the loading of a file or the even hide the whole python window to run in background?? is there no module or function i can use -- http://mail.python.org/mailman/listinfo/python-list

keylogger in Python

2005-07-30 Thread Jay
ok, i thought for 2 seconds i might have created a Keylogger in python but i still have one major think stopping me... PYTHON. when i run the program i have python create a file named keylog2.log and it then logs all keys pressed/typed in the python IDE into that file. All i want to know now is how

Re: keylogger in Python

2005-07-30 Thread Jay
yo, thanks for the great input. And the only reason i want to create a python based keylogger is because there is none. Just a fun project... But im gonna do some more research on the keyboard drivers and stuff like that and to learn how to attach my python porgrams into the sub-processes so that i

Using XML w/ Python...

2005-12-10 Thread Jay
OK, I have this XML doc, i dont know much about XML, but what i want to do is take certain parts of the XML doc, such as blah and take just that and put onto a text doc. Then same thing doe the part. Thats about it, i checked out some of the xml modules but dont understand how to use them. Dont

Re: Using XML w/ Python...

2005-12-11 Thread Jay
Yes i know, i did check out a couple but i could never understand it. They were confusing for me and i wasnt hoping for a full typed tutorial, just like some help with excactly wat im trying to do, not the whole module... but watever, Thx alot for the feedbak. -- http://mail.python.org/mailman/li

Re: Using XML w/ Python...

2005-12-11 Thread Jay
some great suggestions. Ok, i am now understanding some of parseing and how to use it and nodes, things like that. But say i wanted to take the title of http://www.digg.com/rss/index.xml and XMLTramp seemed the most simple to understand. would the path be something like this? import xmltramp rss

Re: Using XML w/ Python...

2005-12-11 Thread Jay
Ok, im convinced to that i need to get Amara, I just installed 4Suite and now installed Amara. Still doesnt work because like i said before, i use ActivePython from http://www.activestate.com/Products/ActivePython/ And the requirements for Amara is Python 2.4 so Thats where we have a problem,

Re: Using XML w/ Python...

2005-12-11 Thread Jay
Ummm, my error conditions. PythonWin 2.3.5 (#62, Feb 9 2005, 16:17:08) [MSC v.1200 32 bit (Intel)] on win32. Portions Copyright 1994-2004 Mark Hammond ([EMAIL PROTECTED]) - see 'Help/About PythonWin' for further copyright information. >>> import amara Traceback (most recent call last): File

Re: Using XML w/ Python...

2005-12-11 Thread Jay
No, when i said "As far as it should work since their both transparent, umm, well its not." I meant that only mine isnt, maybe urs is but for some reason it isnt. And you said amara works fine for you, ok, then could you tell me what package to install... I have installed Amara 1.1.6 for Python

Re: Using XML w/ Python...

2005-12-11 Thread Jay
h, i just tryed the same thing earlier today and it didnt work, but now it does, i downloaded the standalone package and now it works in activepython when it didnt before and i tryed the same thing. And yes, last time i did type python setup.py install. Thx anyway. -- http://mail.python.org

Re: Using XML w/ Python...

2005-12-11 Thread Jay
Spoke too soon, i get this error when running amara in ActivePython >>> import amara >>> amara.parse("http://www.digg.com/rss/index.xml";) Traceback (most recent call last): File "", line 1, in ? File "C:\Python23\Lib\site-packages\amara\__init__.py", line 50, in parse if IsXml(source): Na

Re: Using XML w/ Python...

2005-12-12 Thread Jay
when putting excactly what you got, i got >>> python -c "import amara; print dir(amara)" Traceback ( File "", line 1 python -c "import amara; print dir(amara)" ^ SyntaxError: invalid syntax when doing it seperately, i got> >>> import amara >>> pri

Re: Using XML w/ Python...

2005-12-12 Thread Jay
Umm, yea, u definatly hijacked my thread. If you didnt mean to then dont But anyway, i get this... >>> import amara >>>from amara import domtools >>> print domtools.py Traceback (most recent call last): File "", line 1, in ? NameError: name 'domtools' is not defined >>> suggestions? -- h

Re: Using XML w/ Python...

2005-12-12 Thread Jay
you might be on to something >>> from amara import domtools >>> print domtools.__file__ C:\Python23\lib\site-packages\amara\domtools.pyc >>> -- http://mail.python.org/mailman/listinfo/python-list

Re: Using XML w/ Python...

2005-12-12 Thread Jay
Suggestions maybe? -- http://mail.python.org/mailman/listinfo/python-list

Re: Using XML w/ Python...

2005-12-12 Thread Jay
come on guys, the post isnt dead yet -- http://mail.python.org/mailman/listinfo/python-list

ActivePython and Amara

2005-12-12 Thread Jay
Ok, i had this posted on the other thread "XML w/ Python" but it kinda got off topic from the title to ill start a new thread. My question is this... the import of amara works in ActivePython... PythonWin 2.3.5 (#62, Feb 9 2005, 16:17:08) [MSC v.1200 32 bit (Intel)] on win32. Portions Copyright

Re: ActivePython and Amara

2005-12-12 Thread Jay
es you really need to slow down and learn something before you can continue with what you want to do." ^^Take your post, and shove it up your ass. BYE -Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Using XML w/ Python...

2005-12-12 Thread Jay
ok, thx -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython and Amara

2005-12-12 Thread Jay
On that note... I would like to open up the floor again.. lol -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython and Amara

2005-12-13 Thread Jay
will make sure it doesnt happen again. Lets just start off on a clean slate. :-) -Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython and Amara

2005-12-14 Thread Jay
really quick question, if you look at the XML doc of digg.com then you will see that there are multiple items in channel, how do i tell it to go to the next item and get that title?? title2 = rssDigg.find("//channel/item//title").text Didnt work title2 = rssDigg.find("//channel/item[1]/title"

Re: ActivePython and Amara

2005-12-15 Thread Jay
.. Is there a good tutorial that would show wat i want to do.. i checked and alot of tutorials have basic tutorials that have examples of just one item'd xml's.... thx. -Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython and Amara

2005-12-15 Thread Jay
i knew someone would snap on me... lol. Its not that i dibt ubderstand all of python, its just that i dont understand this specific module since i couldnt find any good tutorials on this specific module. its not the whole programming part, its just the module. I made my program jsut how i wanted it

Re: ActivePython and Amara

2005-12-15 Thread Jay
i knew someone would snap on me... lol. Its not that i dibt ubderstand all of python, its just that i dont understand this specific module since i couldnt find any good tutorials on this specific module. its not the whole programming part, its just the module. I made my program jsut how i wanted it

Re: ActivePython and Amara

2005-12-15 Thread Jay
BTW, i finished this tutorial long ago... http://www.ibiblio.org/obp/thinkCSpy/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython and Amara

2005-12-15 Thread Jay
lol, u guys love picking on me... LOL, i didnt even realize it was creating a list, i know, dumb but true... -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython and Amara

2005-12-16 Thread Jay
sigh... i keep telling you guys im not a newbie, its just that i had a question about that module... But, i understand i may sound like a noob because i was asking for detailed questions instead of the broad ones that you guys were giving me... but i would not like to be considered a noob around he

Re: Email Policy Violation

2005-12-16 Thread Jay
wat is the question that your asking?? -- http://mail.python.org/mailman/listinfo/python-list

Re: Email Policy Violation

2005-12-16 Thread Jay
wat is the question that your asking?? -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib.urlopen

2005-12-17 Thread Jay
Easy Fix... import urllib the_url = "http://www.google.com"; req = urllib.urlopen(the_url) Does this work for you?? -- http://mail.python.org/mailman/listinfo/python-list

IRC sockets and queries

2005-12-29 Thread Jay
ok have this program and i set a socket 2 connect to the server...so i can chat on the channels and stuff. my question is how would i go about set a socket directly 2 an individual query? my program is right here... http://h1.ripway.com/jay001/CopyofPyIRCnMo.txt BTW, im trying to set up a connec

Re: IRC sockets and queries

2005-12-30 Thread Jay
LMFAO! those were jokes for my friends. lol.and btw the dccpoper and bot and crap were jokes that i made up for my friends on the #python channel in freenode... It was a joke.Anyway.. My bad, its ok if u dont want to help... no one likes me on this group anyway... u guys just joined the crowd... bt

Re: raw audio in windows

2006-09-01 Thread Jay
I'm afraid I can't do that. Don't take it personally. I would send it to you, but at this time, I'm developing this app with a friend and I don't know his feelings about the program's distribution or licensing. I can't send it around until I speak to him about it. Sorry. spiffy wrote: > On 31

Re: raw audio in windows

2006-09-01 Thread Jay
So, are you saying this would be possible to do with the PlaySound function? Fredrik Lundh wrote: > Ben Sizer wrote: > > > Not really. You'll have to convert it to .wav and then pass it to a > > helper app. > > > >

pictures as characters in a Tk text box?

2006-09-01 Thread Jay
This may be really obscure, but I had a dream about programming something like this, so don't blame me. Is it possible to take a small image or icon and display it as a character in a Tk text box? Think how Thunderbird displays text smilies as actual smiley icons. Or how in AIM as you type a smi

Re: pictures as characters in a Tk text box?

2006-09-02 Thread Jay
PERFECT!!! Thanks so much! Simon Forman wrote: > Jay wrote: > > This may be really obscure, but I had a dream about programming > > something like this, so don't blame me. Is it possible to take a small > > image or icon and display it as a character in a T

Re: pictures as characters in a Tk text box?

2006-09-02 Thread Jay
Can you do the same in wxPython? Simon Forman wrote: > Jay wrote: > > This may be really obscure, but I had a dream about programming > > something like this, so don't blame me. Is it possible to take a small > > image or icon and display it as a character in a T

tkinter text event

2006-09-06 Thread Jay
I'm having trouble with using the event with the Text object. When I use them together (which is a logical combination), I use this code: textbox = Text(root, wrap="word", height=15, width=50) textbox.bind("", resolveGlyphs) def resolveGlyphs(event): textBuf = textbox.get

Re: tkinter text event

2006-09-08 Thread Jay
That makes sense, but it's not working. John McMonagle wrote: > On Wed, 2006-09-06 at 17:54 -0700, Jay wrote: > > I'm having trouble with using the event with the Text object. > > When I use them together (which is a logical combination), I use this > > code:

Re: tkinter text event

2006-09-08 Thread Jay
Nevermind. It works. Sorry. I got my files mixed up! :-) John McMonagle wrote: > On Wed, 2006-09-06 at 17:54 -0700, Jay wrote: > > I'm having trouble with using the event with the Text object. > > When I use them together (which is a logical combination),

best split tokens?

2006-09-08 Thread Jay
Let's say, for instance, that one was programming a spell checker or some other function where the contents of a string from a text-editor's text box needed to be split so that the resulting array has each word as an element. Is there a shortcut to do this and, if not, what's the best and most eff

Re: ubuntu crash

2006-09-08 Thread Jay
Here are some commands to try: apt-get install ubuntu-standard apt-get install ubuntu-desktop Also, I'd recommend trying Ubuntu's official forums website. I've found their community to be extremely helpful. http://www.ubuntuforums.org/ Plus, why on earth would you want to ax Python? [EMAIL PR

Re: python loops

2006-09-08 Thread Jay
Here are my benchmarks for those interested in version 2.4.3 [EMAIL PROTECTED]:~$ python -V Python 2.4.3 [EMAIL PROTECTED]:~$ python -mtimeit 'for x in range(1000):pass' 1 loops, best of 3: 64.2 usec per loop [EMAIL PROTECTED]:~$ python -mtimeit 'for x in xrange(1000):pass' 1 loops, best o

Re: ubuntu crash

2006-09-09 Thread Jay
Oh.. Sorry about that, then. Did my suggestions work at all? Peter Otten wrote: > Jay wrote: > > > Here are some commands to try: > > > > apt-get install ubuntu-standard > > apt-get install ubuntu-desktop > > > > Also, I'd recommend trying Ub

time-based point system

2006-09-13 Thread Jay
I'm writing a game script and the point system will be based upon time. The less time there is between event one and event two, the higher score you'll get for event two. However, I've got a problem figuring how to do this. Here's why. I don't want the score system to just be a straight charted

Re: time-based point system

2006-09-13 Thread Jay
#x27;ll receive. Simplified, I need a fuction or statement that takes in a small number and spits out a big number. The smaller the input, the larger the output. Erik Max Francis wrote: > Jay wrote: > > > I'm writing a game script and the point system will be based upon time. > >

Re: Looking for the Perfect Editor

2006-09-13 Thread Jay
I, too, am a hardcore fan of jEdit. It's nice to finally see some user support on this forum. :-) Wildemar Wildenburger wrote: > stu wrote: > > jedit > > > > http://www.jedit.org/ > > Finally! I usually try to stay out of these discussions; yet I'm always > disappointed at how few people seem t

Re: time-based point system

2006-09-13 Thread Jay
wrote: > Jay wrote: > > > Okay, this is a game. So the points are abstract. It's like an arcade > > game in respect to the points. They don't actually mean or represent > > anything. The only point is to get a high score. The idea is that the > > fast

Re: time-based point system

2006-09-13 Thread Jay
I'm sorry. I never considered what you said about the relationship about the input and output. I'll take my thread elsewhere to a math board. Erik Max Francis wrote: > Jay wrote: > > > That function is absolutely no good for this situation. > >

Tkinter.Button(... command) lambda and argument problem

2006-09-15 Thread Jay
I'm having a problem using lambda to use a command with an argument for a button in Tkinter. buttons = range(5) for x in xrange(5): buttons[x] = Button(frame, text=str(x+1), command=lambda: self.highlight(x)) buttons[

Re: Tkinter.Button(... command) lambda and argument problem

2006-09-15 Thread Jay
Perfect. Thanks. Paul Rubin wrote: > "Jay" <[EMAIL PROTECTED]> writes: > > > I'm having a problem using lambda to use a command with an argument for > > a button in Tkinter. > > > > buttons = range(5) > &g

Re: Tkinter.Button(... command) lambda and argument problem

2006-09-15 Thread Jay
Thanks for the tip, but that breaks things later for what I'm doing. [EMAIL PROTECTED] wrote: > In that case you don't need a lambda: > > import Tkinter as tk > > class Test: > def __init__(self, parent): > buttons = [tk.Button(parent, text=str(x+1), > command=self.highlight(x)) for x

mp3 libs and programs

2006-09-15 Thread Jay
I'm writing a python script that involves playing mp3 files. The first approach I had was sending commands to unix command-line programs in order to play them. I tired mpg123 and moosic, but there was a key feature to my program's success that's missing. SEEK! I need to be able to start playing

Re: mp3 libs and programs

2006-09-15 Thread Jay
Only if I have to. PyMedia is a pain and a half to build and why do that if I can just pipe it out to some other program? Tim Williams wrote: > On 15 Sep 2006 18:16:41 -0700, Jay <[EMAIL PROTECTED]> wrote: > > I'm writing a python script that involves playing mp3 files. Th

Re: mp3 libs and programs

2006-09-15 Thread Jay
That's definately a good choice, but what about mplayer in slave mode? Can I use that with python? Would that be able to seek? Harold Fellermann wrote: > hi, > > Jay wrote: > > I'm writing a python script that involves playing mp3 files. The first > > approac

Re: mp3 libs and programs

2006-09-15 Thread Jay
I checked it and I can most definitely do the seeking from the command line with mplayer. Can I use slave mode with python? Jay wrote: > That's definately a good choice, but what about mplayer in slave mode? > Can I use that with python? Would that be able to seek? > > &g

Re: Python programs always open source?

2006-09-17 Thread Jay
Speaking of the bytecode, how does one create it? Ben Finney wrote: > "Guy Fawkes" <[EMAIL PROTECTED]> writes: > > > I was wondering if Python programs always need to include the source > > code with the program itself. I'm asking this because I don't want > > my program to be open-source and so

mp3 file length in time

2006-09-17 Thread Jay
In python, I know there are a couple of modules for getting id3 info, but what about the length of an mp3 file in time? Is there a way to aquire that info? Most of my MP3s don't have id3 tags. I don't care for them. But I need to use python to get their file lengths. How? -- http://mail.pyth

Re: mp3 file length in time

2006-09-17 Thread Jay
Any tips on how to do that? Paul Rubin wrote: > "Jay" <[EMAIL PROTECTED]> writes: > > In python, I know there are a couple of modules for getting id3 info, > > but what about the length of an mp3 file in time? Is there a way to > > aquire that info? Most of

gnome module

2006-09-18 Thread Jay
Am I correct in assuming that I can use the gnome module to minimize all windows (aka show desktop)? If so, how? -- http://mail.python.org/mailman/listinfo/python-list

Re: gnome module

2006-09-18 Thread Jay
Sorry. Nevermind. It's no longer an issue. :-) Jay wrote: > Am I correct in assuming that I can use the gnome module to minimize > all windows (aka show desktop)? If so, how? -- http://mail.python.org/mailman/listinfo/python-list

Re: noob question

2006-09-22 Thread Jay
http://code.google.com/hosting/ xandeer wrote: > where is a good open-source project website? > thank-you > (sorry for being so annoying)(if I'm annoying)(if not then I'm not > sorry) -- http://mail.python.org/mailman/listinfo/python-list

grabbing random words

2006-09-22 Thread Jay
How would I be able to grab random words from an internet source. I'd like to grab a random word from a comprehensive internet dictionary. What would be the best source and the best way to go about this? Thanks. (Sorry if this sounds/is super noobish.) -- http://mail.python.org/mailman/listinfo

vector and particle effects

2006-09-28 Thread Jay
I'd like to experiment a little bit with vector graphics in python. When I say 'vector graphics' I don't mean regular old svg-style. I mean vector game style as in simulation of vector beam drawn graphics. If you still don't know what I'm talking about, see Grid Wars 2 (http://gridwars.marune.de/)

Re: Resuming a program's execution after correcting error

2006-09-28 Thread Jay
I don't know how much help this is going to be, but you could store values in a temporary file on the hard disk and write checkpoints to read in the data and begin from a point somewhere in the middle of the script. Sheldon wrote: > Hi. > > Does anyone know if one can resume a python script at the

vector and particle effects

2006-09-28 Thread Jay
I'd like to experiment a little bit with vector graphics in python. When I say 'vector graphics' I don't mean regular old svg-style. I mean vector game style as in simulation of vector beam drawn graphics. If you still don't know what I'm talking about, see Grid Wars 2 (http://gridwars.marune.de/)

Re: vector and particle effects

2006-09-28 Thread Jay
Sorry for the double post. Google groups was being stubborn. Jay wrote: > I'd like to experiment a little bit with vector graphics in python. > When I say 'vector graphics' I don't mean regular old svg-style. I > mean vector game style as in simulation of vector

Re: analyzing removable media

2006-09-28 Thread Jay
e, so I'd imagine that the method I described for linux could probably be adapted. Jay glenn wrote: > Hi > can anyone tell me how given a directory or file path, I can > pythonically tell if that item is on 'removable media', or sometype of > vfs, the label of the

Re: analyzing removable media

2006-09-29 Thread Jay
erating system it is running on (which I believe is possible through the standard library) and route the request to the appropriate OS-specific method. Just a thought. Jay Dennis Lee Bieber wrote: > On 28 Sep 2006 23:23:23 -0700, "glenn" <[EMAIL PROTECTED]> > declaimed the fo

DAT file compilation

2006-09-29 Thread Jay
Is there a way through python that I can take a few graphics and/or sounds and combine them into a single .dat file? If so, how? And how can I access the data in the .dat file from inside the python script? -- http://mail.python.org/mailman/listinfo/python-list

Re: DAT file compilation

2006-09-29 Thread Jay
That's one solution, but I'd rather a file format the end-user can't easily mess around with. Diez B. Roggisch wrote: > Jay schrieb: > > Is there a way through python that I can take a few graphics and/or > > sounds and combine them into a single .dat file? If so,

Re: DAT file compilation

2006-09-29 Thread Jay
That cgi idea is really cool, but I don't have any web space to host the files. Plus the bandwidth required would be deadly. I think I'll just have to stick to the zip file idea. The problem with the read-only is that this program is aimed at a Windows audience. James Stroud wrote: &

int vs long

2007-06-02 Thread jay
I was reading in a book that the 'int' type can store whole numbers up to 32 bits. I'm not exactly sure what that means, but got me wondering, what's the largest number you can store as an 'int' before you need to switch over to 'long'? Thanks f

Re: int vs long

2007-06-03 Thread jay
Hi Dan, Paul, and Kaens, Thanks very much for replying to my question. I appreciate you all taking the time to answer this for me! Jay > On 02 Jun 2007 20:18:02 -0700, Paul Rubin > <"http://phr.cx"@nospam.invalid> wrote: >> Dan Bishop <[EMAIL PROTECTED]

A few questions

2007-05-20 Thread jay
little about 'Claro Graphics Toolkit' and 'PyGUI'... would you recommend either of those? I'll be writing code on a Mac so I need something that will run on that system. Thanks for looking at my questions. Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: A few questions

2007-05-21 Thread jay
rite? Or is there a way to compile the code to where I can distribute an app I write and the other users don't need to load anything in order to run the app? Thanks again for your help with all this. I really appreciate you all taking the time to look and answer our questions. Jay --

Re: xlrd question

2007-08-05 Thread jay
via the same API as AppleScript:... Very cool! Thanks very much for sharing this. I'll definitely look into 'appscript'. > If you need more info just ask. Thanks again Has, for taking the time to share all this! I really appreciate it! Jay -- http://mail.python.org/mailman/listinfo/python-list

Python mode

2007-08-09 Thread jay
should be located in my home folder. I can't find a .emacs file anywhere on my machine. The only thing close to it is a .emacs.d folder which contains an autosave folder. Does anyone know where this .emacs file is located? Or do I need to manually create one? Thanks for looking at my

Extending logging module

2007-08-09 Thread jay
en possible? I don't like changing the standard libraries, what happens if I have to upgrade python? My changes get overwritten. Can anyone offer some help or suggestions? Thanks Jay -- http://mail.python.org/mailman/listinfo/python-list

connect to server question

2007-12-03 Thread jay
Is there a way to connect to servers on OS X using Python? Here's the code I presently use in a Bash Shell script: /bin/mkdir -p /Volumes/A_Share /sbin/mount_afp "afp://username:[EMAIL PROTECTED]/A_Share" "/ Volumes/A_Share" Can something similar be done w

Compleated Begginers Guide. Now What?

2006-04-08 Thread Jay
I have compleated the beginers guide to python http://www.freenetpages.co.uk/hp/alan.gauld/. then i found the Toolkit Tkinter and started on that. its graight and av made lots of apps to help me with litle things but i have a big problem. the CLASS method. when i seperate things up into classes i

Re: Compleated Begginers Guide. Now What?

2006-04-08 Thread Jay
Verry true but no help at all -- http://mail.python.org/mailman/listinfo/python-list

Re: Compleated Begginers Guide. Now What?

2006-04-08 Thread Jay
Verry true but no help at all -- http://mail.python.org/mailman/listinfo/python-list

Re: Compleated Begginers Guide. Now What?

2006-04-08 Thread Jay
Thank you Martin Christensen and i am sorry for not explaning well. i will tack that advice -- http://mail.python.org/mailman/listinfo/python-list

Tkinter

2006-04-08 Thread Jay
groundFile = PhotoImage(file="Background.GIF") Tank1 = self.MainFrame.create_image(0, 0, image=BackgroundFile) root = Tk() app = App(root) root.mainloop() ---END----- Thanks Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter

2006-04-09 Thread Jay
Now I just get this error message. AttributeError: 'int' object has no attribute 'image' But the picture appears so I am almost their. ---START--- from Tkinter import * class App: def __init__(self, root): self.MainFrame = Canvas(root) self.MainFrame.pack(fill=BOTH, expand=

Re: Tkinter

2006-04-09 Thread Jay
Brill, Thanks for the help -- http://mail.python.org/mailman/listinfo/python-list

Python Shell window

2006-04-10 Thread Jay
Is their any way of setting wear the Python Shell window appears on the screen when I run my program? I am testing a full screen program with no Window Frame on a comp with 2 monitors and I have to keep pressing the Key to bring the Shell to the front and then moving it manually to the other scre

base64

2006-04-12 Thread Jay
string but when trying to display it, it reads the string up until the first ("/n") ("Cg==") and then stops. The base 64 string seams to be complete but when converted back it is incomplete. Thanks Jay Dee ...START.. from Tkinter

Re: base64

2006-04-13 Thread Jay
mport * # # # Module: Base64 Encoder / Decoder.py # Author: Jay Dee # Date: 08/04/2006 # Version: Draft 0.1 # Coments: A Base64 Encoder / Decoder for converting files into Base64 st

Tkinter

2006-04-16 Thread Jay
I wold like to be able to generate buttons from a list in a file. How would I go about making each button have a different command, Lets say make the button print its label instead of print "." The problem I have is I don't know what the list is going to be until it is opened or how big so I carne

Re: Tkinter

2006-04-16 Thread Jay
I still dont quite get it, is their sum kind of way you can [def Newdef + i()] for example so that the def is different from the string, all the buttons now have numbers on If I am not mistaken Fredrik Lundh rote the tutorial Learning to program (Python) www.freenetpages.co.uk/hp/alan.gauld/ and

CGI scripts

2006-04-17 Thread Jay
Can I use Python for CGI scripts. It is telling me to use Perl and I don't know any To be honest I don't really no what CGI scripts are (soz) I have purchased a domain name of my ISP PIPEX and 100MB space And I don't know what I can do with it now OPPs Jay Dee -- http://

automate minesweeper with python

2010-06-30 Thread Jay
I would like to create a python script that plays the Windows game minesweeper. The python code logic and running minesweeper are not problems. However, "seeing" the 1-8 in the minesweeper map and clicking on squares is. I have no idea how to proceed. -- http://mail.python.org/mailman/listinfo/py

  1   2   3   4   >