Fwd: Removing python installation

2020-05-14 Thread Shawn Hoffman
Studio\Shared\Python37_64\python.exe" * -3.7-64C:\Users\shawn\AppData\Local\Programs\Python\Python37\python.exe As you can see, the 3.7.5 install is from Visual Studio. I want to remove this python installation, however while uninstalling it via the VS Installer GUI appears to work, non

ANN: datatest 0.7.0 (Test driven data wrangling)

2016-08-02 Thread Shawn Brown
datatest 0.7.0 (Test driven data wrangling) === Datatest extends the standard library's unittest package to provide testing tools for asserting data correctness. * Docs: http://datatest.readthedocs.io/ * PyPI: https://pypi.python.org/pypi/datatest/ This

Re: cannot run a ruby script from a python script.

2014-09-25 Thread Shawn Bright
On Wednesday, September 24, 2014 6:57:34 PM UTC-5, Shawn Bright wrote: > hello all. > > > > i have a linux computer that i use to run a GUI (wxGTK) program. In this > program, there is a call to run an external ruby script. > > > > command = "ruby r

cannot run a ruby script from a python script.

2014-09-24 Thread Shawn Bright
hello all. i have a linux computer that i use to run a GUI (wxGTK) program. In this program, there is a call to run an external ruby script. command = "ruby run_my_command.rb &" os.system(command) however, when it runs, i get this in the terminal sh: 1: ruby: not found i had considered that

Re: How to implement a combo Web and Desktop app in python.

2012-09-13 Thread Shawn McElroy
e others. And the UI, will be different based on platform. web/mobile will just be html/css, and desktop, will likely end up being something like qt/wx. Thanks. On Thursday, September 13, 2012 5:20:48 PM UTC-7, Shawn McElroy wrote: > I am somewhat new to python. I am still learning it. I am

How to implement a combo Web and Desktop app in python.

2012-09-13 Thread Shawn McElroy
snt seem to fit what I need to do. There are rest api plugins available for it, but if the core of my app is based on REST, it seemed to make more sense to start with something that has REST built into the core of the framework. Any input or advice is much appreciated. Thanks. - Shawn M

Re: problem with bcd and a number

2011-08-04 Thread shawn bright
Thanks for your help on this, gents. Got it working now. shawn On Thu, Aug 4, 2011 at 2:28 PM, Dave Angel wrote: > nibbles from a byte -- http://mail.python.org/mailman/listinfo/python-list

Re: Development tools and practices for Pythonistas

2011-04-30 Thread Shawn Milochik
For what it's worth, the Python core developers have selected Mercurial. I personally use git and love it. Most open-source people seem to use one or the other of the two. They're pretty similar in most ways. Look at the big two sites for open-source repositories -- github and bitbucket. One's

Re: Development tools and practices for Pythonistas

2011-04-29 Thread Shawn Milochik
Depends on the project, but I'd start with git the time I created the first file in my project. If you're in the habit of committing then you can easily rollback missteps. If you're in the habit of making branches you can experiment without breaking the currently-working code. -- http://mail.

Re: Unix-head needs to Windows-ize his Python script

2010-10-20 Thread Shawn Milochik
On Oct 20, 2010, at 2:00 PM, Grant Edwards wrote: > On 2010-10-20, Shawn Milochik wrote: > ript and execute its code, passing the arguments in. > >> wxPython is just Python. > > No, it's not. > > You can't assume that any windows machine with Python in

Re: Unix-head needs to Windows-ize his Python script

2010-10-20 Thread Shawn Milochik
Write a small GUI in the easy-to-use and cross-platform wxPython module. All this GUI needs to do is allow them to input the arguments. The code can then import your stand-alone version of the script and execute its code, passing the arguments in. wxPython is just Python. -- http://mail.python

Re: pylint -- should I just ignore it sometimes?

2010-10-19 Thread Shawn Milochik
27;s probably a good idea to get into the habit. This way, you can catch multiple exceptions in a tuple without confusing the interpreter: except ValueError, IndexError as ex: Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: When will Python go mainstream like Java?

2010-02-22 Thread Shawn Milochik
When will Java be popular enough to replace other languages in their own environments, the way Python has done to Java (Jython) and .NET (IronPython)? Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: File transfer with python

2010-01-07 Thread Shawn Milochik
Have a look at Paramiko. It lets you do secure transfers easily (scp/sftp) http://www.lag.net/paramiko/ Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: Python books, literature etc

2010-01-06 Thread Shawn Milochik
Search Google. You'll find it all. Search this list's archives. This kind of thing has been discussed a thousand times. It also wouldn't hurt to brush up on this: http://catb.org/~esr/faqs/smart-questions.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie help- Can multiple instances with multiple names automatically created.

2010-01-04 Thread Shawn Milochik
On Jan 4, 2010, at 5:59 PM, Nav wrote: > On Jan 4, 4:54 pm, Chris Rebert wrote: >> On Mon, Jan 4, 2010 at 1:32 PM, Shawn Milochik wrote: >>> You could put them in a dictionary with the key being the name, instead of >>> a list. >> >> To illust

Re: Newbie help- Can multiple instances with multiple names automatically created.

2010-01-04 Thread Shawn Milochik
You could put them in a dictionary with the key being the name, instead of a list. Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple distributed example for learning purposes?

2009-12-28 Thread Shawn Milochik
database is, the incoming data is going to be a problem. Shawn-- http://mail.python.org/mailman/listinfo/python-list

Re: Simple distributed example for learning purposes?

2009-12-28 Thread Shawn Milochik
s is a major, real-world issue that remains unsolved, and companies that do a decent job at it make millions of dollars a year from their clients. One of my old jobs made tens of millions a year (and growing FAST) in the medical industry alone. Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: DB Table Processor?

2009-12-27 Thread Shawn Milochik
It sounds like you're looking for SQLAlchemy. http://www.sqlalchemy.org/ Enjoy! Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: How to iterate the input over a particular size?

2009-12-27 Thread Shawn Milochik
A couple of notes: Your code is too packed together. That makes it hard to read. Put in some whitespace (and comments, where necessary), and put spaces around your equal signs (x = 23 instead of x=23). That said, here's something I threw together: #!/usr/bin/env python def chop_list(words, si

Re: Simple distributed example for learning purposes?

2009-12-27 Thread Shawn Milochik
n it, you can have the students refine the matching rules over time, and see how those rules effect the match rate and the processing time. On the downside, your class will not have the joy of being taught the 'ideal solution' to this problem at the end; if you come up with that, you'll be able to go into business and make millions of dollars a year. ^_^ Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: python gui builders

2009-11-24 Thread Shawn Wheatley
r SWT. Check it out. Shawn On Nov 18, 5:11 pm, Stef Mientki wrote: > Wouldn't it be nice > if each fan of some form of GUI-package, > would post it's code (and resulting images) for generating one or two > standard GUI-forms ? -- http://mail.python.org/mailman/listinfo/python-list

Python 2.6.3 and finding init.tcl

2009-10-15 Thread Shawn Wheatley
ot in this list. Renaming "tcl2" back to "tcl" resolves the problem, but it still doesn't explain to me why Python is looking in that location in the first place. Can anyone shed some light on how Python/Tkinter initialization works? Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: handling https sites

2009-06-26 Thread Shawn Milochik
On Jun 26, 2009, at 12:08 PM, padfoot wrote: Sir, Is there any module in python to open https sites through a proxy.I am connectyed to the net via a proxy server and i am unable to crawl https sites. -- http://mail.python.org/mailman/listinfo/python-list Check out the "Scrape the Web" ser

Re: Your Favorite Python Book

2009-05-11 Thread Shawn Milochik
" > > All highly recommended. > > Best of luck on your Python journey! > > Regards, > Malcolm > -- > http://mail.python.org/mailman/listinfo/python-list > I second the Wesley Chun recommendation wholeheartedly. Also, "Text Processing in Python" is av

Re: Fill Javascript form

2009-05-11 Thread Shawn Milochik
How is the form "written in JavaScript"? Is it dynamically generated? In any case, can you just send a POST request if you know the values required? -- http://mail.python.org/mailman/listinfo/python-list

Re: Your Favorite Python Book

2009-05-11 Thread Shawn Milochik
t;Beginning Python Visualization" (presenting data visually) "Programming Collective Intelligence" (extracting valuable information from public data sources, and more) Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: Downloading most recently modified files

2009-05-10 Thread Shawn Milochik
On Sun, May 10, 2009 at 1:04 PM, AllenLars wrote: > > Thanks Shawn. I went through the ftplib info and I was able to generate a > list. I am needing to figure out parsing the list. > > AllenLars Well, start by separating out the date and the file name. You'll want the d

Re: "Beginning Python Visualization" by Shai Vaingast

2009-05-10 Thread Shawn Milochik
Thanks for the review and the podcast. I ordered the book on Friday. I look forward to playing with it. Also (assuming you're Ron Stephens), thanks for the Python 411 podcast. It's a great resource, and I recommend it to all list members. Shawn -- http://mail.python.org/mailman/listi

Re: xml in python

2009-05-09 Thread Shawn Milochik
for simple XML processing with success. The XML module seems to be the way to go, considering how many of its child modules are listed on http://docs.python.org/library/. import xml.dom.minidom as minidom Shawn -- http://mail.python.org/mailman/listinfo/python-list

OT (humor): 'import antigravity' in action!

2009-05-09 Thread Shawn Milochik
I know you've probably all seen this 50 times, but just in case: http://xkcd.com/353/ And here's the result: http://icanhascheezburger.com/2009/05/06/funny-pictures-behavior-20/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Downloading most recently modified files

2009-05-07 Thread Shawn Milochik
On Thu, May 7, 2009 at 2:19 PM, AllenLars wrote: > > I am trying to code a script that will allow me to go to ftp site and > download files based on most recently modified file (date, time).  I am > brand new to programming.  Any and all help is appreciated. > -- I've actually written code to do

Re: Copy & Paste in a Dos box

2009-05-06 Thread Shawn Milochik
> Damn! I may just go back to using Python from the command prompt > instead of using IDLE. > > On second thought, IDLE is way too useful for indenting, dedenting, > commenting and uncommenting blocks of code. Can't go back to using > Notepad. > You might want to check out iPython, then -- it's

Re: Parsing text

2009-05-06 Thread Shawn Milochik
On Wed, May 6, 2009 at 2:32 PM, iainemsley wrote: > Hi, > I'm trying to write a fairly basic text parser to split up scenes and > acts in plays to put them into XML. I've managed to get the text split > into the blocks of scenes and acts and returned correctly but I'm > trying to refine this and g

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Shawn Milochik
On Wed, May 6, 2009 at 2:39 PM, Grant Edwards wrote: > On 2009-05-06, Shawn Milochik wrote: > >> I know I'm coming to the conversation late, but here's what I do*: >> >> 1. Use Cygwin. (http://www.cygwin.com/) >> 2. Use PuttyCYG (http://code.google.

Re: Copy & Paste in a Dos box (was: Pyhton script to call another program)

2009-05-06 Thread Shawn Milochik
On Wed, May 6, 2009 at 1:54 PM, Tim Chase wrote: >> for windows this works: >> (can't cut and paste from a dos box!###%*&!!!) > > Depending on how it was spawned, you can either right-click in the window > and choose Mark/Paste (when marking, use to terminate the selection; > and selections are b

Re: "Battleship" style game

2009-03-11 Thread Shawn Milochik
Thanks for the tips, everybody. I've cleaned it up, and learned some useful things from your comments and the reading they led to. http://shawnmilo.com/ships/ -- http://mail.python.org/mailman/listinfo/python-list

Re: The Python's regex different from Perl's , I want know what's the different?

2009-02-26 Thread Shawn Milochik
;ve found this page to be pretty helpful: http://www.regular-expressions.info/python.html Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: "Battleship" style game

2009-02-25 Thread Shawn Milochik
ay is anti-Pythonic. Unless, of course, anything I said is wrong, which is always possible. If I'm missing a bigger-picture idea, I'd like to know about it. Thanks, Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: "Battleship" style game

2009-02-25 Thread Shawn Milochik
Thanks. I wasn't aware of the property() function, but I read up on it. I modified the Vessels.py file, but not the board file (except where necessary to handle the changes made to Vessels. Is this better? http://shawnmilo.com/ships/ships2/ -- http://mail.python.org/mailman/listinfo/python-list

Re: "Battleship" style game

2009-02-25 Thread Shawn Milochik
On Wed, Feb 25, 2009 at 11:38 AM, Marco Mariani wrote: > > Yes it's in Python alright, but it's not Pythonese yet. You could try > avoiding the getter/setter stuff, and camelCase method naming, things like > that, for a start. > > -- > http://mail.python.org/mailman/listinfo/python-list > What d

"Battleship" style game

2009-02-25 Thread Shawn Milochik
//shawnmilo.com/ships/ Thanks, Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: re.sub and named groups

2009-02-11 Thread Shawn Milochik
> > Book recommendation: _Mastering Regular Expressions_, Jeffrey Friedl > -- > Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ I wholeheartedly second this! The third edition is out now. -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching a file for multiple strings (PS)

2009-02-01 Thread Shawn Milochik
On Sun, Feb 1, 2009 at 1:14 AM, John Machin wrote: > On Feb 1, 3:39 pm, Shawn Milochik wrote: > >> Not to discourage the use of Python, but it seems that fgrep with the >> -f flag already does exactly what you want. If you're on Windows, you >> can get the Window

Re: Searching a file for multiple strings (PS)

2009-01-31 Thread Shawn Milochik
7;re on Windows, you can get the Windows version of fgrep here: http://unxutils.sourceforge.net/ Shawn -- http://mail.python.org/mailman/listinfo/python-list

Python 2.5.2 error on Solaris, No module named _md5

2008-12-11 Thread Gong, Shawn (Contractor)
port md5 File "/home/sgong/dev181/dist/lib/python2.5/hashlib.py", line 133, in md5 = __get_builtin_constructor('md5') File "/home/sgong/dev181/dist/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor import _md5 ImportError: No module named _md5

Re: spam update

2008-11-19 Thread Shawn Milochik
, if that's where the spam comes from, but it penalizes the legitimate users who don't subscribe to the mailing list. Just for what it's worth. This is an ongoing problem (although it used to be much worse), and it's a shame that we're going in circles. Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: How to eliminate quotes around string field written to a file.

2008-11-14 Thread Shawn Milochik
On Sat, Nov 15, 2008 at 12:19 AM, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Fri, 14 Nov 2008 20:39:53 -0800, len wrote: > >> hi >> >> Have this code in my program; >> >> filename = 'custfile' >> codeline = filename + ' = [\n' >> output.write(codeline) >> >> record written to file

Re: Text based screens without ncurses

2008-11-14 Thread Shawn Milochik
On Thu, Nov 13, 2008 at 2:10 PM, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-11-13, Mirat Can Bayrak <[EMAIL PROTECTED]> wrote: > >> Hi, i'll try to write a editor in python, i want it run under >> terminal (no qt or gtk) but i dont want to use urwid or curses >> modules. >> >> Can i write m

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
On Wed, Nov 5, 2008 at 8:52 PM, Kurda Yon <[EMAIL PROTECTED]> wrote: > By the where can I find a simle tutorial about the work with the > "sqlite" from the Python? > -- > http://mail.python.org/mailman/listinfo/python-list > Once you get the connection, you can pretty much just do whatever if you

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
On Wed, Nov 5, 2008 at 1:55 PM, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * Shawn Milochik (Wed, 5 Nov 2008 12:28:46 -0500) >> >> Thanks, but either I'm missing something or you're missing >> >> something. I can't do any of what you descr

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
>> Thanks, but either I'm missing something or you're missing something. >> I can't do any of what you describe on the machine I want to use >> sqlite on. >> >> I have downloaded the binary sqlite3 file from sqlite's Web site, and > > The linux binary will not work. You need the headers and the > l

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
On Wed, Nov 5, 2008 at 11:58 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Nov 5, 9:22 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: >> This is all useful and interesting stuff, but I don't think any of it >> addresses the original poster's

Re: Parse each line by character location

2008-11-05 Thread Shawn Milochik
modified to create comma-delimited files, but that's something I never use, so it does tabs. http://milochik.com/shawn/fwconvert.zip Usage: fwconvert -r rulesFile fileName [-t|-f] or cat filename | fwconvert -r rulesFile" (-t|-f) -t (to tab)

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
This is all useful and interesting stuff, but I don't think any of it addresses the original poster's problem, which is that he has no root access to a Linux or Unix box, and wants to get pysqlite2 working in his home directory. I have exactly the same problem. I have tried the "python setup.py ins

Re: How to protect website from access without authentication?

2008-11-03 Thread Shawn Milochik
permission from some users while allowing it for others, and you can allow your users to each have their own password. Plus, you'll be able to log which user did what. If this wasn't helpful, please be much more specific in restating your question. Shawn On Mon, Nov 3, 2008 at 8:30 AM,

Re: PYTHON WORKING WITH PERL ??

2008-11-01 Thread Shawn Milochik
On Sat, Nov 1, 2008 at 11:15 AM, Nicola Larosa (tekNico) <[EMAIL PROTECTED]> wrote: > Pat <[EMAIL PROTECTED]> wrote: >> After you learn Python, you'll come to despise Perl. > > Some of us came to despise Perl *before* learning Python (third to > last paragraph): For what it's worth, I thought I'd

Re: Exact match with regular expression

2008-10-31 Thread Shawn Milochik
On Fri, Oct 31, 2008 at 8:57 PM, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Rob > Williscroft wrote: > >> Read (and bookmark) this: >> >> http://www.python.org/doc/2.5.2/lib/re-syntax.html > > Funny how you never get a thank-you when you tell people to RTFM. >

Re: Windows DOS box redirection

2008-10-31 Thread Shawn Milochik
On Fri, Oct 31, 2008 at 2:14 PM, Bill McClain <[EMAIL PROTECTED]> wrote: > On 2008-10-31, Stef Mientki <[EMAIL PROTECTED]> wrote: >> Well I don't know any Windows users that still use DOS-boxes ;-) >> cheers, > > What do they do when they want to run a cross-platform command-line script > with para

Re: Python does not get environment variable when using cron.

2008-08-18 Thread Shawn Milochik
put to a file: env > cron_env.txt Then run env in your interactive session and look for differences. Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: Testing for the first few letters of a string

2008-08-07 Thread Shawn Milochik
Check out the built-in string.startswith() method. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing of a file

2008-08-06 Thread Shawn Milochik
> > I would like to parse this file by extracting the field id, ra, dec and mjd > for each line. It is > not, however, certain that the width of each value of the field id, ra, dec > or mjd is the same > in each line. Is there a way to do this such that even if there was a line Regular expressions

Re: Monitor and compare two log files in real time

2008-08-06 Thread Shawn Milochik
Can you be more specific? That will also help you write your requirements, which will lead to your pseudo code and then your code. Do you want to search for a a pre-defined string (or set of strings), or just look for anything matching a pattern to appear in the first file? Related question: Can t

Re: Issue with regular expressions

2008-04-30 Thread Shawn Milochik
My stab at it: My stab at it: #!/usr/bin/env python import re query = ' " some words" with and "withoutquotes " ' query = re.sub("\s+", " ", query) words = [] while query.__len__(): query = query.strip() print("Current query value: '%s'" % query) print words pri

Re: Finally had to plonk google gorups.

2008-04-30 Thread Shawn Milochik
How does one "plonk" stuff from Google Groups? Specifically, how can this be done in Gmail? Thanks, Shawn -- http://mail.python.org/mailman/listinfo/python-list

Checking for unique fields: performance.

2008-04-18 Thread Shawn Milochik
I'm looping through a tab-delimited file to gather statistics on fill rates, lengths, and uniqueness. For the uniqueness, I made a dictionary with keys which correspond to the field names. The values were originally lists, where I would store values found in that field. Once I detected a duplicate

program to Ping ip addresses

2008-04-15 Thread shawn s
Hi I am trying to modify a small program i found off the internet as follows... I can get the 'tracert' to work and it gives me all the info back. However, when i replace the tracert with 'ping', the commamd prompt shows 'testing' and the script freezes... any suggestions as why it is doing t

simple program

2008-04-11 Thread shawn s
Hi, Here is a simple prog that I can run from the Python shell and it runs fine but when I double click the 'filename.py' , it does not execute the ping statement, and seems like it is stuck at the following output: Fri Apr 11 12:16:09 2008 Testing 192.168.0.1 The prog is as follows: impo

Re: Python for mobiles

2008-01-31 Thread Shawn Milochik
this capability? Also, is wxPython supported? Or are you just knowledgeable about the S60? Thanks, Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: sudoku solver in Python ...

2008-01-23 Thread Shawn Milochik
one: http://norvig.com/sudoku.html I'm not making any judgements here, though. If anyone takes the time to actually review them, I'd be interested in hearing any educated comparisons. Shawn -- http://mail.python.org/mailman/listinfo/python-list

a way to keep track of # of clicks

2007-12-10 Thread Shawn Minisall
Is there a way to keep track of the number of times someone clicks on a menu item in a prorgam? What I want to do is make the rectangle disappear after they click on it at the main menu 3 times so visually show them they can't do it any longer. Since I appended the button to a main menu list,

Re: a way to keep track of # of clicks

2007-12-09 Thread Shawn Minisall
Is there a way to keep track of the number of times someone clicks on a menu item in a prorgam? What I want to do is make the rectangle disappear after they click on it at the main menu 3 times so visually show them they can't do it any longer. > > Since I appended the button to a main menu lis

Highscores list

2007-12-08 Thread Shawn Minisall
>for i in range(0,len(scores)): >outfile.write("\t" + str(scores[i]) + "\t\t\t" + names[i] + "\n") >outfile.close() > > And here's the call to the functions at the end of my game, included > in the error msg. > >#ad

highscores list

2007-12-08 Thread Shawn Minisall
included in the error msg. #adds player's score to high score list if high enough if(hasHighScore(wins) == True): setHighScores(wins,getName(wins)) And this is what the text file looks like when it happens. High Score Name - 15

RE project - trivia game

2007-12-04 Thread Shawn Minisall
Sorry, 4got to send it in html for the bold parts. thx def drawMainMenu(win): #define and draw the buttons mainMenuList = [] mainMenuList.append (CreateRect(4,6,7,8,"grey",win)) mainMenuList.append (CreateRect(3.5,6.5,5,6,"grey",win)) mainMenuList.append (CreateRect(3.5,6.5,3,4,"g

project - trivia game

2007-12-04 Thread Shawn Minisall
For my final project, I'm trying to do a GUI based game similar to are you smarter then a 5th grader. I've been working on it and am stuck with some code someone helped me with to randomize the A,B,C,D letters that the correct answer is assigned too. The code that does this is highlighted in

get mouse

2007-11-27 Thread Shawn Minisall
I'm just trying to test and see if the get mouse statements are working in my program. If they are, in the console window, it should go back to the prompt. It doesn't for all of them, just the last rectangle...sometimes. Am I setting them up correctly? here's the relevant code...thx The f

Re: What is python?????

2007-11-16 Thread Shawn Milochik
On Nov 16, 2007 2:16 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Nov 16, 8:14 am, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > > * Cope (Fri, 16 Nov 2007 06:09:31 -0800 (PST)) > > > > > please tell me what is python.This group is so crowded. > > > > A Python is dangerous snake[1]. This gr

Re: Python beginner!

2007-11-16 Thread Shawn Milochik
I completely support Wildemar. Lazy questions like that deserve absolutely nothing. I agree that cushioning the reply with a brief explanation of why that question sucks would have helped the original poster, but he doesn't deserve any effort from any of us until he has shown evidence of his own e

Re: What is python?????

2007-11-16 Thread Shawn Milochik
However, the python is not poisonous, so it is also edible if you can kill one before it squeezes you to death. Despite this fact, it is not a major food source for group members, due to our great respect for the mighty python. Shawn On Nov 16, 2007 9:14 AM, Thorsten Kampe <[EMAIL PROTEC

Re: Creating Installer or Executable in Python

2007-11-14 Thread Shawn O'Shea
eploy for large user groups. > > I'm not aware of any free tools for building MSIs, but I'd love to find > one. I just learned about this one within the last week, wix http://wix.sourceforge.net/ PHP.net uses it for their Windows installers. -Shawn > > - Adam > >> ---

a few questions.

2007-10-31 Thread Shawn Minisall
1. whats the best way to round a result to 4 decimal places? I tried round, but then read that it only works with exponents of 10. I'm trying to do it on this piece of code. time = (distance / 4900) 2. What direction would I go in if I'm getting 5 inputs from the user and want to make a bar t

Re: clear shell screen

2007-10-29 Thread Shawn Minisall
Hmm...it works fine within the command line but then when I import os in python and then try os.system("cls"), i get that very fast opening/closing window and 0 inside the shell. Gabriel Genellina wrote: > En Mon, 29 Oct 2007 00:08:14 -0300, Shawn Minisall > <[EMAIL

Re: New

2007-10-29 Thread Shawn Milochik
On 10/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi! > Am new to Python and am looking for a sample project that demonstrates > how to connect to MySQL, save data in MySQL database using a form on a > web page. > > Regards, > Joseph > > -- > http://mail.python.org/mailman/listinfo/python

clear shell screen

2007-10-28 Thread Shawn Minisall
Does anyone know how to clear the shell screen completely ? I tried import os and then os.system("clear") was said to have worked in Windows XP, but it's just bringing up another window, then it turns black and then it closes in within about a second moving the prompt at the os.system("clear")

Re: while within while

2007-10-28 Thread Shawn Minisall
about or ever cover them in class. I think we get to true statements in the next chapter next week. It turns out that my problem was with indentation, as soon as I fixed it, it's working perfectly now. thx Dennis Lee Bieber wrote: > On Sat, 27 Oct 2007 15:11:37 -0400, Shawn Minis

while within while

2007-10-27 Thread Shawn Minisall
K I've since fixed the UnboundLocalError: local variable 'ai' referenced before assignment error, I forgot to include decision = (1, 2, 3) inside " " for each number. Now when I run it, I get this.. >>> main() READY TO PLAY ROCK, PAPER, SCISSORS??? Please choose from the following menu: 1. Se

while within while

2007-10-27 Thread Shawn Minisall
I've been having some problems with using a while statement for one menu within another while statement for the main menu, first time I've done it. It's with choice number two from the menu. When I run the program, I get a UnboundLocalError: local variable 'ai' referenced before assignment.

Re: for loop

2007-10-24 Thread Shawn Minisall
I agree, but if I want to get a A on the program, thats how my professor wants the output. :) [EMAIL PROTECTED] wrote: > On Oct 22, 9:12?pm, Shawn Minisall <[EMAIL PROTECTED]> wrote: > >> Thanks, everyone! Using everyone's suggestions and points, the program

greatest and least of these...

2007-10-23 Thread Shawn Minisall
I just wrote a program to let the user input a series of whole numbers and tell them which is least and which is greatest based off of a menu. However, the menu isn't kicking in after they pick a number. I included a while statement for a loop just for the menu and compared it to my other pro

Re: Regular Expression

2007-10-23 Thread Shawn Milochik
other data which looks similar? Do you have a specific field length? Is it guaranteed to contain a digit? Is it required to start with a letter? Does it always start with 'C'? You need to have those kinds of rules in mind to write your regex. Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: for loop

2007-10-22 Thread Shawn Minisall
ECTED] wrote: > On Oct 22, 5:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >> On Oct 22, 5:22 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >>> On Mon, 22 Oct 2007 18:17:56 -0400, Shawn Minis

for loop

2007-10-22 Thread Shawn Minisall
#Intro print "*" print "WELCOME TO THE POPULATION GROWTH CALCULATOR" print "*" print "This program will predict the size of a population of organisms." print print organisms=inp

while statements

2007-10-16 Thread Shawn Minisall
I just learned about while statements and get why you place them around inputs for validation, but I'm a little lost on exactly where to place it with what condition in this program where the number of fat grams exceeds the total number of calories so that it loops back and asks you the two que

if then elif

2007-10-10 Thread Shawn Minisall
I just learned about if, then elif statements and wrote this program. The problem is, it's displaying all of the possibilities even after you enter a 0, or if the fat grams are more then the total number of calories , that is supposed to stop the program instead of continuing on with the print

Re: [Tutor] matching a street address with regular expressions

2007-10-10 Thread Shawn Milochik
On 10/4/07, Ricardo Aráoz <[EMAIL PROTECTED]> wrote: > Christopher Spears wrote: > > One of the exercises in Core Python Programming is to > > create a regular expression that will match a street > > address. Here is one of my attempts. > > > street = "1180 Bordeaux Drive" > patt = "\d+

Re: [Tutor] data from excel spreadsheet to csv and manipulate

2007-10-03 Thread Shawn Milochik
dge with > BackOfMyHand.com > ___ > Tutor maillist - [EMAIL PROTECTED] > http://mail.python.org/mailman/listinfo/tutor > > Here's the best approach: 1. Browse: http://python.org/doc/ 2. Search Google. 3. Write code. 4. Post c

Re: Algebraic Modules For Python

2007-10-02 Thread Shawn Milochik
On 10/1/07, Brandon McGinty <[EMAIL PROTECTED]> wrote: > > > Hi All, > I know that there is probably a great deal of literature on this on the net, > but I don't have any time to go searching. -- > Brandon McGinty > McGinty Soft Ltd. > Website design, configuration, and maintenance > Python and

Re: ValueError: too many values to unpack,>>>

2007-09-27 Thread Shawn Minisall
Fredrik Lundh wrote: > Shawn Minisall wrote: > > >> Sorry, it looks like it's on the fourth line with the 3 values on line >> 4...its reading line 3 fine >> >> Traceback (most recent call last): >> File "", line 1, in >>

  1   2   >