Re: I need an idea for practise!

2014-07-17 Thread Paul McNett
On 7/17/14, 12:30 PM, Rick Johnson wrote: You know, you would fit in nicely in the American public school system, since American teachers are not only free of the requirement of teaching, they are actually*COMPELLED* not to do so by the greedy unions. Hi Rick, I know a lot of American public

Re: What should i do

2014-06-27 Thread Paul McNett
On 6/27/14, 2:19 AM, suburb4nfi...@gmail.com wrote: Hello I finished the codeacademy python course a week ago and my goal is to start developing websites (both back and front end) ,my question is do i start the web dev tuts and learn the holes of knoledge on the go or continue to learn

Re: What should i do

2014-06-27 Thread Paul McNett
On 6/27/14, 11:12 AM, alister wrote: On Fri, 27 Jun 2014 08:18:24 -0700, Paul McNett wrote: On 6/27/14, 2:19 AM, suburb4nfi...@gmail.com wrote: Hello I finished the codeacademy python course a week ago and my goal is to start developing websites (both back and front end) ,my question is do i

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Paul McNett
On 6/18/14, 10:20 AM, cutey Love wrote: I'm trying to read in 10 lines of text, use some functions to edit them and then return a new list. How is it that you are opening the file, and iterating the contents? The problem is my program always goes not responding when the amount of lines

Re: Generate Single PowerPoint from two powerpoints using pywin32(python)

2014-06-18 Thread Paul McNett
On 6/16/14, 11:20 PM, Jaydeep Patil wrote: I have two powerpoints, which consists of images in each slide. I need to read each powerpoint, copy images from both powerpoint paste these images into output powerpoint side by side. How should i do thism using python? The repoisition of shapes

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Paul McNett
On 6/18/14, 3:32 PM, cutey Love wrote: Hi, thanks for the replies, I mean windows displays Not responding close the program now How can I do it asynconistrically? It's simple code just open file, loop through line by line and do some comparons with the string. To get anything better from

Re: Python Fails to Write to File

2014-06-18 Thread Paul McNett
On 6/18/14, 4:03 PM, cutey Love wrote: I'm trying to write data to a text file But I'm getting the error: TypeError: invalid file: _io.TextIOWrapper Always better to err on posting too much context (the entire traceback) than too little. Code is def saveFile(): file_path =

Re: Suds and Python3

2014-05-31 Thread Paul McNett
On 5/31/14, 11:36 AM, tokib...@gmail.com wrote: Suds is defacto python SOAP client, but it does not mainte recent few years. Why? Is it really the defacto? It seems like I've heard more about pysimplesoap, and looking at GitHub there have been commits in the past 4 days. As far as why it

Re: Script suddenly stops

2014-05-30 Thread Paul McNett
On 5/29/14, 7:47 PM, Chris wrote: I'm trying to read ten 200 MB textfiles into a MySQL MyISAM database (Linux, ext4). The script output is suddenly stopping, while the Python process is still running (or should I say sleeping?). It's not in top, but in ps visible. Does it stop in the same

Re: Challenge: Please break this! [Python Security]

2009-02-23 Thread Paul McNett
tav wrote: I'm keen to know your experiences even if you don't manage to write to the filesystem -- and especially if you do! Does it count when it breaks some standard libs that aren't even trying to write to the filesystem? mac:ss pmcnett$ python sbs_studio.py pkm Traceback (most recent

Re: Unexpected scientific notation

2009-01-09 Thread Paul McNett
Mark Dickinson wrote: On Jan 8, 1:00 am, Paul McNett p...@ulmcnett.com wrote: It displays '3E+1' instead of '30.0'. As I can't reproduce I'm looking for an idea brainstorm of what could be causing this. What would be choosing to display such a normal number in scientific notation? Ideas

Re: Unexpected scientific notation

2009-01-09 Thread Paul McNett
Paul McNett wrote: Mark Dickinson wrote: On Jan 8, 1:00 am, Paul McNett p...@ulmcnett.com wrote: It displays '3E+1' instead of '30.0'. As I can't reproduce I'm looking for an idea brainstorm of what could be causing this. What would be choosing to display such a normal number in scientific

Re: Replying to list messages

2009-01-08 Thread Paul McNett
Ben Finney wrote: Paul McNett p...@ulmcnett.com writes: But arguing about this here isn't going to change anything: opinions differ just like tabs/spaces and bottom-post/top-post. In cases like this, one side can simply be wrong :-) Best of luck getting your programs behaving as you want

Unexpected scientific notation

2009-01-07 Thread Paul McNett
One of my users has reported that my app is giving them scientific notation instead of decimal notation for one specific value among many that display properly. I am unable to reproduce on my end, and this is the first I've heard of anything like this since the app's launch 2 years ago. The

Re: Unexpected scientific notation

2009-01-07 Thread Paul McNett
Robert Kern wrote: Paul McNett wrote: One of my users has reported that my app is giving them scientific notation instead of decimal notation for one specific value among many that display properly. I am unable to reproduce on my end, and this is the first I've heard of anything like

Re: Unexpected scientific notation

2009-01-07 Thread Paul McNett
[Some day hopefully I'll remember to change the to: address to python-list@python.org instead of the original sender. I always end up sending the first reply to the sender, then going oops, forgot to hit 'reply-all', and sending another copy to the list.] Ben Finney wrote: Paul McNett p

Re: Replying to list messages

2009-01-07 Thread Paul McNett
Ben Finney wrote: Paul McNett p...@ulmcnett.com writes: [Some day hopefully I'll remember to change the to: address to python-list@python.org instead of the original sender. Even better: Take full advantage of the standards-compliant messages from the list, by using the “Reply to list

Re: Check file is

2008-12-22 Thread Paul McNett
Colin J. Williams wrote: The ReportLab toolkit appears to be concerned with building Portable Document Files. I would be interested in any utility which will read any pdf - for example, to convert pdf - html I don't know of any Python utility to do this, but pdftohtml, pdftotext, pdftoppm,

Re: Building musical chords starting from (a lot of) rules

2008-11-14 Thread Paul McNett
Mr.SpOOn wrote: Anyway, I think I can use a chain of if-clauses, one per rule and at the end remove the notes marked with no. But this seems to me a very bad solution, not so pythonic. Before I proceed for this way, do you have any suggestion? Hope the problem is not too complicated. I say,

Re: What's the perfect (OS independent) way of storing filepaths ?

2008-10-24 Thread Paul McNett
Steven D'Aprano wrote: On Sun, 19 Oct 2008 20:50:46 +0200, Stef Mientki wrote: Duncan, in windows it's begin to become less common to store settings in DocsSettings, because these directories are destroyed by roaming profiles The directories aren't destroyed by roaming profiles. When the

Re: [1,2,3] exactly same as [1,2,3,] ?

2008-08-29 Thread Paul McNett
Steven D'Aprano wrote: On Thu, 28 Aug 2008 16:28:03 -0700, Paul McNett wrote: [EMAIL PROTECTED] wrote: x=[1,2,3] and x=[1,2,3,] are exactly the same, right? When confronted with this type of question, I ask the interpreter: {{{ mac:~ pmcnett$ python Python 2.5.2 (r252:60911, Feb 22 2008

ctypes version mismatch

2008-08-29 Thread Paul McNett
Anyone have anything to suggest on this error: {{{ Traceback (most recent call last): File shutter_studio.py, line 41, in module File App.pyo, line 25, in module File ui\__init__.pyo, line 23, in module File ui\FrmProductionOrders.pyo, line 10, in module File

Re: ctypes version mismatch

2008-08-29 Thread Paul McNett
Thomas Heller wrote: Paul McNett schrieb: Anyone have anything to suggest on this error: {{{ Traceback (most recent call last): File shutter_studio.py, line 41, in module File App.pyo, line 25, in module File ui\__init__.pyo, line 23, in module File ui\FrmProductionOrders.pyo, line

Re: [1,2,3] exactly same as [1,2,3,] ?

2008-08-28 Thread Paul McNett
[EMAIL PROTECTED] wrote: x=[1,2,3] and x=[1,2,3,] are exactly the same, right? When confronted with this type of question, I ask the interpreter: {{{ mac:~ pmcnett$ python Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type help,

Re: [1,2,3] exactly same as [1,2,3,] ?

2008-08-28 Thread Paul McNett
James Mills wrote: I must point out though that although they contain the same elements/data, they are not the same object/instance. True, but the OP wanted equality: I want to be sure I'm generating an equivalent data structure. Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: How to figure out if the platform is 32bit or 64bit?

2008-08-01 Thread Paul McNett
Gary Josack wrote: Trent Mick wrote: Manuel Vazquez Acosta wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just test for maxint value: from sys import maxint if maxint 33: print more than 32 bits # probably 64 else: print 32 bits I believe that was already suggested in this

Re: wxPython: How can I get window's HANDLE in wxPython.

2008-07-02 Thread Paul McNett
Leo Lee wrote: I need a window's handle to be passed to external c++. Thanks in advance import wx help(wx.Window.GetHandle) GetHandle(*args, **kwargs) unbound wx._core.Window method GetHandle(self) - long Returns the platform-specific handle (as a long integer) of the physical

Re: [Employment] New TurboGears Job in Eugene, OR

2008-06-27 Thread Paul McNett
Silas Snider wrote: Full-time academic year position Salary range: $2819 - $4404 per month ( $16.26 - $25.41 per hour) The following knowledge, skills and experience are necessary for this position: Expert Python and SQL programming skills, and proficiency with Javascript, CSS, XHTML and web

Re: Making wxPython a standard module?

2008-06-14 Thread Paul McNett
Grant Edwards wrote: On 2008-06-14, Torsten Bronger [EMAIL PROTECTED] wrote: I've never used any of the designers, but I agree 100% that wxPython code is nasty ugly. wxPython has a very un-Pythonic API that's is, IMO, difficult to use. I know that such requests may start a never-ending thread

Re: readlines with line number support?

2008-05-14 Thread Paul McNett
Nikhil wrote: I am reading a file with readlines method of the filepointer object returned by the open function. Along with reading the lines, I also need to know which line number of the file is read in the loop everytime. I am sure, the line should have the property/attribute which will say

Re: Why is None = 0

2008-04-25 Thread Paul McNett
Gregor Horvath wrote: None = 0 True More accurately: None 0 True Why? Is there a logical reason? None is less than everything except for itself: None 'a' True None False True None == None True In my humble opinion, I think that comparisons involving None should return None,

Re: how to mysqldb dict cursors

2008-04-24 Thread Paul McNett
Vaibhav.bhawsar wrote: I have been trying to get the DictCursor working with mysqldb module but can't seem to. I have pasted the basic connection code and the traceback from pydev. The connection does open with the default cursor class. can't figure this one out. many thanks. Try one of:

Re: function that accepts any amount of arguments?

2008-04-23 Thread Paul McNett
globalrev wrote: if i want a function that can take any amount of arguments how do i do? Put an asterisk before the argument name. lets say i want a function average that accepts any number of integers and returns the average. def avg(*args): return sum(args) / len(args) There are some

Re: Pysqlite issue no attribute 'autocommit'

2008-02-04 Thread Paul McNett
Andy Smith wrote: Im trying to run a Python based program which uses MySQL with python-sqlite and Im recieving this error, 'Connection' object has no attribute 'autocommit' I´ve had a google for this and its seems like it may be a bug python-sqlite or sqlite bug , but also I

Re: PIL linux err

2008-01-31 Thread Paul McNett
dzizes wrote: I'm trying to run simple .py on linux, which is using PIL. Below error message which I receive: IOError: decoder jpeg not available Do you know what might be the problem? No, but google seems to: http://effbot.org/zone/pil-decoder-jpeg-not-available.htm Paul --

Re: Terminology: script versus program

2008-01-24 Thread Paul McNett
Steven D'Aprano wrote: Linux/Unix/Mac admins may be excused for saying that they've never come across a .BAT file at all. $ locate .bat | wc -l 14 $ locate .sh | wc -l 606 $ locate .bat | wc -l 115 $ locate .sh | wc -l 763 $ locate .py | wc -l 44030 Hmmm... that matched all the .pyo

Re: mac dashboad

2007-12-21 Thread Paul McNett
Carl K wrote: Yes. But I don't want to rely on wx - trying to use just native mac python (whatever they ship with) Since OSX 10.4, Mac ships with wxPython installed. Paul -- http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: DBApi Question with MySQL

2007-12-12 Thread Paul McNett
Hans Müller wrote: Hi, I'd like to modify some tables in a database in one transaction. This approach doesn't work: import MySQLdb con = MySQLdb.connect(servernam, user = username, passwd = verysecret, db = test, use_unicode = True, charset = utf8) cursor = con.cursor()

Re: Copy database with python..

2007-11-02 Thread Paul McNett
Abandoned wrote: Hi. I want to copy my database but python give me error when i use this command. cursor.execute(pg_dump mydata old.dump) What is the problem ? And how can i copy the database with python ? You are just going to have to give us more to go on. Please post the entire

Re: 3 number and dot..

2007-10-31 Thread Paul McNett
Abandoned wrote: Hi.. I want to do this: for examle: 12332321 == 12.332.321 How can i do? Assuming that the dots are always in the 3rd and 7th position in the string: def conv(s, sep=.): l = [s[0:3], s[3:6], s[6:]] return sep.join(l) print conv(12332321) -- pkm ~

Re: 3 number and dot..

2007-10-31 Thread Paul McNett
Abandoned wrote: On Oct 31, 10:18 pm, Paul McNett [EMAIL PROTECTED] wrote: Abandoned wrote: Hi.. I want to do this: for examle: 12332321 == 12.332.321 How can i do? Assuming that the dots are always in the 3rd and 7th position in the string: def conv(s, sep=.): l = [s[0:3], s

Re: Problem with format string / MySQL cursor

2007-10-18 Thread Paul McNett
[EMAIL PROTECTED] wrote: On Oct 19, 7:32 am, Florian Lindner [EMAIL PROTECTED] wrote: Hello, I have a string: INSERT INTO mailboxes (`name`, `login`, `home`, `maildir`, `uid`, `gid`, `password`) VALUES (%s, %s, %s, %s, %i, %i, %s) that is passed to a MySQL cursor from MySQLdb: ret =

Re: sqlite and TemporaryFile under Windows

2007-10-16 Thread Paul McNett
Matthieu Brucher wrote: If this is the way of using sqlite, it is still cumbersome as a lot of other classes that work on files can work on file-like (and isn't it the whole point of Python ;) ? I don't think that sqlite can work on streams, or on file-like

Re: sqlite and TemporaryFile under Windows

2007-10-15 Thread Paul McNett
Matthieu Brucher wrote: I want to create a temporary database that is downloaded for the net. So I want to use a temporary file that will be deleted at the end of my program. For this, I wanted to use tempfile.TemporaryFile. The problem with Windows is that I can't give to sqlite3.connect()

Re: sqlite and TemporaryFile under Windows

2007-10-15 Thread Paul McNett
Matthieu Brucher wrote: Are you aware that you can do an in-memory database (IOW no file at all)? cur = sqlite.connect (:memory:) Yes, but in this case, how can I use the DB that I downloaded from the net ? Ah, sorry, I guess I missed that part. If this is the way of using

Re: Is there some sort of portable IDE?

2007-09-24 Thread Paul McNett
Lamonte Harris wrote: Like say you don't got python installed, but you want to test code is there a way?(School) Like way, dude, check this out: http://www.portablepython.com/ -- pkm ~ http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How do you limit the # of lines Read?

2007-09-18 Thread Paul McNett
[EMAIL PROTECTED] wrote: I am working on a loop for my code and was wondering if there is a way to limit the number of lines read through? I'd hate to cut the test file in order to run the code in the testing phase. Can you add a value in the parenthesis of the readline() function? t =

Re: Python and Cron

2007-09-07 Thread Paul McNett
Greg Lindstrom wrote: This may be more of a Linux question, but I'm hoping some of you may be able to help me. I have a python (2.4) routine running on Gentoo Linux. It creates a file and, after the file is complete, renames the file using the os.rename() command. When I run the file

Dealing with PayPal's messy SPF records

2007-09-04 Thread Paul McNett
I administer email for a few clients of mine, using Postfix. One of the policies that is in place is SPF-checking, and rejecting messages accordingly. This has been working well for months. However, today a user called me to complain that they weren't able to get confirmed with PayPal to set

Re: Mouse control with ctypes in OS X

2007-08-20 Thread Paul McNett
Niklas Ottosson wrote: I need to get hold of the mouse position and also need to be able to change it. In windows I have used ctypes.windll.user32.getCursorPos() and ctypes.windll.user32.setCursorPos() with great success in my program but now I also need to make a Mac OS X version of the

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread Paul McNett
Steve Holden wrote: When someone starts to push the limits of PHP they either continue to push until they get where they want to be (producing an ugly or ill-maintained bunch of code along the way) or they choose a more appropriate tool. The latter behavior is typical of programmers. The

Re: Advice on sending images to clients over network

2007-07-22 Thread Paul McNett
Frank Millman wrote: I guess the point of all this rambling is that my thought process is leading me towards my third option, but this would be a bit of work to set up, so I would appreciate any comments from anyone who has been down this road before - do I make sense, or are there better ways

Re: Advice on sending images to clients over network

2007-07-22 Thread Paul McNett
Paul Rubin wrote: Frank Millman [EMAIL PROTECTED] writes: Any suggestions will be much appreciated. Why on earth don't you write the whole thing as a web app instead of a special protocol? Then just use normal html tags to put images into the relevant pages. I believe he has a full

Re: Advice on sending images to clients over network

2007-07-22 Thread Paul McNett
Calvin Spealman wrote: On 7/22/07, Paul McNett [EMAIL PROTECTED] wrote: Paul Rubin wrote: Frank Millman [EMAIL PROTECTED] writes: Any suggestions will be much appreciated. Why on earth don't you write the whole thing as a web app instead of a special protocol? Then just use normal

Re: New guy help with setup

2007-07-12 Thread Paul McNett
meg99 wrote: I just downloaded 2.5 and read the readme file. It says Before you can build Python, you must first confiigure itStart by running the script ./configure. I can't find ./configure I am running Windows XP SP2 You downloaded the wrong file. You want the Windows Installer:

Re: New guy help with setup

2007-07-12 Thread Paul McNett
meg99 wrote: On Jul 12, 4:24 pm, Paul McNett [EMAIL PROTECTED] wrote: meg99 wrote: I just downloaded 2.5 and read the readme file. It says Before you can build Python, you must first confiigure itStart by running the script ./configure. I can't find ./configure I am running Windows XP

Re: New guy help with setup

2007-07-12 Thread Paul McNett
meg99 wrote: On Jul 12, 4:35 pm, Paul McNett [EMAIL PROTECTED] wrote: meg99 wrote: On Jul 12, 4:24 pm, Paul McNett [EMAIL PROTECTED] wrote: meg99 wrote: I just downloaded 2.5 and read the readme file. It says Before you can build Python, you must first confiigure itStart by running

Re: Build EXE on Mac OsX 10.4

2007-06-14 Thread Paul McNett
Sherm Pendley wrote: Gabriel Genellina [EMAIL PROTECTED] writes: En Wed, 13 Jun 2007 17:35:19 -0300, Paul McNett [EMAIL PROTECTED] escribió: Tempo wrote: Has anyone sucesfully built a *.exe file on a mac operating system before from a *.py file? I have been trying to do

Re: OS X install confusion

2007-06-14 Thread Paul McNett
John Fisher wrote: Ted [EMAIL PROTECTED] wrote: On Jun 14, 1:31 pm, Kevin Walzer [EMAIL PROTECTED] wrote: John Fisher wrote: Hi Groupies, I have an Intel Macbook running OS X 10.4. It came installed with Python 2.3.5. I have since installed MacPython with version 2.4.4, cool. When I open

Re: Build EXE on Mac OsX 10.4

2007-06-13 Thread Paul McNett
Tempo wrote: Has anyone sucesfully built a *.exe file on a mac operating system before from a *.py file? I have been trying to do this with pyinstaller, but I keep getting errors and I don't know how to install UPX properly. I tried putting the linux UPX folder in my python 2.4 directory, but

Re: updates in sqlite3 do not work

2007-05-29 Thread Paul McNett
Chris Fonnesbeck wrote: I have a script set up to perform UPDATE commands on an sqlite database using the sqlite3 module. Everything appears to run fine (there are no error messages), except that none of the UPDATE commands appear to have actually updated the table. If I run each command on

Re: How to get started as a xhtml python mysql freelancer ?

2007-05-25 Thread Paul McNett
gert wrote: I made something that i was hoping it could make people happy enough so i could make a living by providing support for commercial use of http://sourceforge.net/projects/dfo/ But in reality i am a lousy sales men and was wondering how you people sell stuff as a developer ? In my

Re: Python script not mapping our site correctly?

2007-05-24 Thread Paul McNett
[EMAIL PROTECTED] wrote: We have been using the Google recommended python script for about a year. Which script would that be? Googling for 'python script' yields approx. 27 million hits. We recently realized that the script was not crawling our sites url's, but just our folders which

Re: dabo framework dependancies

2007-05-23 Thread Paul McNett
Peter Decker wrote: On 5/22/07, daniel gadenne [EMAIL PROTECTED] wrote: I'm considering moving over to dabo for wxpython development. However I do not write traditional database applications à la foxpro (I'm a 20 years user of fox...) anymore. Only xml-fed applications. I'm a bit hesitant

Re: Python and GUI

2007-05-21 Thread Paul McNett
[EMAIL PROTECTED] wrote: Just wondering on what peoples opinions are of the GUIs avaiable for Python? Python has, I believe, 4 compelling choices for GUI library: Tkinter, wxPython, PyQt, and PyGTK. Like everything in life, each has their relative merits and downsides. Briefly, here are my

Re: File DB instead of real database?

2007-04-13 Thread Paul McNett
Jia Lu wrote: I donot want to use a real DB like MySQL ... But I need something to save about more than 1000 articles. Is there any good ways? (in Python 2.5): #-- begin import sqlite3.dbapi2 as sqlite con = sqlite.connect(path/to/new/filename.db) cur = con.cursor() cur.executescript(

Re: DOS, UNIX and tabs

2006-12-30 Thread Paul McNett
Sebastian 'lunar' Wiesner wrote: Paul McNett [EMAIL PROTECTED] typed Steven D'Aprano wrote: But I think we all agree that mixing tabs and spaces is A Very Bad Thing. I like mixing tabs and spaces, actually. Tabs for indentation, and additional spaces to make the code look pretty. Somebody

Re: DOS, UNIX and tabs

2006-12-29 Thread Paul McNett
Steven D'Aprano wrote: But I think we all agree that mixing tabs and spaces is A Very Bad Thing. I like mixing tabs and spaces, actually. Tabs for indentation, and additional spaces to make the code look pretty. Somebody please tell me why this is bad and I'll stop. class Apple(object):

Re: Good Looking UI for a stand alone application

2006-12-18 Thread Paul McNett
Luc Heinrich wrote: Peter Decker [EMAIL PROTECTED] wrote: You're full of it. I routinely write GUI apps in Dabo for both Windows and Linux users, and they look just fine on both platforms. Oh, I'm sure you do. Now go try to run one of your Dabo apps on a Mac and see how it looks/feels...

Re: detecting that a SQL db is running

2006-12-01 Thread Paul McNett
bill ramsay wrote: none of this matters, all i am trying to find out is whether or not the local MSDE is actually running. If it is a local MSDE then you may be able to rely on the connection being refused if the server isn't running. #-- begin import socket host = 127.0.0.1 port = 1433 ##

Re: Converting Microsoft Works databases.... *shudder*

2006-11-03 Thread Paul McNett
Michael B. Trausch wrote: GISDude wrote: Mike, I totally forgot that MS Works was out there. Haven't used that one in about 6 or 7 years. Honestly, your best bet is to convert to .csv or some delimited .txt file. Once that is done, all your rows/columns will be nice and neat . Once that is

Re: Serious wxPython Error while executing..

2006-10-30 Thread Paul McNett
kath wrote: Hello, sorry about the lengthy message. I finding difficult to execute this program. The wx.Notebook i created is coming on the splitted frame(self.p2). How do I that. I am started to learn wxPython, and when I run the code, the code doesnot close gracefully, it throughs me an

Re: .doc to html and pdf conversion with python

2006-10-14 Thread Paul McNett
Alexander Klingenstein wrote: I need to take a bunch of .doc files (word 2000) which have a little text including some tables/layout and mostly pictures and comvert them to a pdf and extract the text and images separately too. If I have a pdf, I can do create the html with pdftohtml called

Re: SQLwaterheadretard3 (Was: Is it just me, or is Sqlite3 goofy?)

2006-09-08 Thread Paul McNett
that will fail, please enlighten me. -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: urlopen() error

2006-09-08 Thread Paul McNett
probably in element 0. Put in a print statement before your call to urlopen() like: print u You'll likely discover your error. -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Class instantiation

2006-08-23 Thread Paul McNett
') # open the sheet in the 'dOH! smack's head. Change to self.connect(fileId, ...) :) -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: I'm just not cut out for web programming, I guess :)

2006-05-17 Thread Paul McNett
you set the execute bit on your script? What's the output in your web server error log? -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: is there any overheard with try/except statements?

2006-03-08 Thread Paul McNett
John Salerno wrote: One of the things I learned with C# is that it's always better to handle any errors that might occur within the codes itself (i.e. using if statements, etc. to catch potential out of range indexing) rather than use too many try/catch statements, because there is some

Re: how do you move to a new line in your text editor?

2006-03-02 Thread Paul McNett
John Salerno wrote: But I read in the PEP that spaces are recommended over tabs. If this is If you like tabs, stick with tabs. There isn't any reason to use spaces unless your boss is demanding it. Tabs are the slightly better choice, in my humble opinion. That said, you should be able to

Re: commenting out blocks of code

2006-02-17 Thread Paul McNett
john peter wrote: in java, i can prevent a block of code from executing by bracketing the block with comment indicators, as shown below: /* statement1 will not execute; statement2 will not execute; */ statement3 will execute is there a similar mechanism in python, other than

Re: Visual Report Editor

2006-02-16 Thread Paul McNett
Pawel wrote: I plan to make Visual Reporting Editior, a new product for corporate-class systems. Data will be in XML and in my application, designer should be able to make fascinating templates of reports. I will use Python and MSVS 2005 Pro. My question is, which libaries will be useful in

Re: Help with super()

2006-01-13 Thread Paul McNett
to the current subclass I access that attribute from. Does that make any sense? Yes, it makes sense. The trick is to not query the values using self, but to ask the class definitions for the attribute. See my second message that gives an example, climbing the __mro__ tree backwards. -- Paul

Re: Help with super()

2006-01-12 Thread Paul McNett
) class B(A): _v = [4,5,6] b = B() print b.v -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs bad

2005-12-06 Thread Paul McNett
is encountering it without understanding it. But Python handles it just fine. -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Paul McNett
want that type of person to begin with. Perhaps that sounds a bit elitist, but if people would just put their preconceptions aside, they'd quickly realize that Python really does get block indentation (and a whole host of other things besides) right. -- Paul McNett http://paulmcnett.com http

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Paul McNett
is the natural language, and that contains so many ambiguities that humans often get instructions wrong. Indeed, there is only one user interface that needs no documentation whatsoever. -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread Paul McNett
') and type: route print On Linux or Mac, the command would simply be: route Do this on both computers, and post the output here. If you are using ip addresses only in your URL's the problem isn't with DNS or name lookup so let's eliminate a routing problem next. -- Paul McNett http://paulmcnett.com

Re: wxPython installation issues on Debian

2005-11-30 Thread Paul McNett
derivative), using Python 2.4.2 and wxPython 2.6. The wxPython was installed using 'apt-get install python-wxGtk2.6'. So I don't know why you say you need to use Python 2.3 as I don't even have that on my system. -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org

Re: wxPython installation issues on Debian

2005-11-30 Thread Paul McNett
if it is available for Python 2.4 under Debian (or Ubuntu, for that matter). -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
, self.onCellSelected) And, your questions will be better on the wxpython-users list at http://wxpython.org/maillist.php -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
Paul McNett wrote: lux wrote: How can I capture the EVT_SET_FOCUS on a wxGrid? If you want to catch when the grid as a whole gets the focus, use: grid.Bind(wx.grid.EVT_SET_FOCUS, self.onGridFocus) Oops, my bad: grid.Bind(wx.EVT_SET_FOCUS, self.onGridFocus) If you want to catch

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
the guess that the first window to get the focus is actually that little corner window at the intersection of the column labels and the row labels. Try this instead: g.GetGridCornerLabelWindow().Bind(wx.EVT_SET_FOCUS, onGridFocus) -- Paul McNett http://paulmcnett.com http://dabodev.com -- http

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
() if now-prev .05: return self.raiseEvent(dEvents.GotFocus, evt) -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
/wxWidgets, I'd probably not get anything else done. But on the other hand you couldn't force me to stop using wxPython if you tried! -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: an intriguing wifi http server mystery...please help

2005-11-29 Thread Paul McNett
) Laptop wireless, server Desktop wireless, client CRAP! webpage served in 90 seconds What the heck is happening? Please post your routing tables and, if you are referencing your server machine by name, your name server addresses (/etc/resolv.conf on Linux). -- Paul McNett http

Re: exceptions, internals (introspection?)

2005-11-10 Thread Paul McNett
internals you are talking about: import inspect help(inspect) Back to exceptions, you can also provide your own global exception handler by overriding sys.excepthook (drop in your own function). -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman

Re: how to modify text in html form from python

2005-10-21 Thread Paul McNett
original problem, but perhaps this will help get you rolling again. -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Documenting properties

2005-09-27 Thread Paul McNett
the upside/downsides of the two beyond what I just explained? Nothing really, but something handy to keep in mind is that the string literal (x) can be used to block out huge sections of code during testing, where you'd have to put a # in front of every line otherwise. -- Paul McNett http

Re: PyGTK or wXPython?

2005-09-13 Thread Paul McNett
much faster on Windows, and with lots of styled text dog-slow on Linux. Wx does use the native underlying toolkit for the platform (Qt is owner-drawn), which can cause some platform inconsistencies. -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman

ANN: Dabo 0.4.1

2005-08-31 Thread Paul McNett
/wizards has also been updated to produce even better generated applications, ones that give the developer a starting structure that is relatively easy to tweak, modify, and augment. -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >