Re: Documenting properties

2005-09-27 Thread Paul McNett
"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://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: how to modify text in html form from python

2005-10-21 Thread Paul McNett
a string, as in: print """ ... """ I don't really understand your 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: exceptions, internals (introspection?)

2005-11-10 Thread Paul McNett
me of the other 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

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
gt;>> grid.Bind(wx.grid.EVT_GRID_SELECT_CELL, 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.Bi

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
ows, and I made 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://paulmcnet

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
._lastGridFocusTimestamp = time.time() 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
for everything wrong with wxPython/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
server machine by name, your name server addresses (/etc/resolv.conf on Linux). -- 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
you are on Windows, please open a command window (Start|Run and then type 'cmd') 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&#x

Re: wxPython installation issues on Debian

2005-11-30 Thread Paul McNett
s worth: I'm on Ubuntu (a Debian 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

Re: wxPython installation issues on Debian

2005-11-30 Thread Paul McNett
6 should be used. But, I don't know 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: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Paul McNett
look because of their own bigoted ideas, I say Python doesn't 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 who

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

2005-12-05 Thread Paul McNett
ludicrous: the only programming language, for > example, which does not need documentation 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

Re: Tabs bad

2005-12-06 Thread Paul McNett
worlds, because let's face it, tabs do make slightly more sense. Finding out that Emacs has been doing this by default makes me feel better about admitting this publicly. There are definitely issues with mixing whitespace like this, especially is someone 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: difficulty connecting to networked oracle database

2005-07-21 Thread Paul McNett
.computronix.com/utilities.shtml ODBC isn't really the best solution for Python programs. -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Separation of Code in CGI App

2005-07-22 Thread Paul McNett
database queries, or both. Also, have you run through the tutorial on python.org? -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Separation of Code in CGI App

2005-07-22 Thread Paul McNett
issuing: import XXX -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-07-31 Thread Paul McNett
think there may be possibility for some mindshare between the projects, but it is, alas, always easier to reinvent the wheel yourself than to try to design by committee. -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-07-31 Thread Paul McNett
Admittedly, installing from source is more difficult than any other project I've found, but still doable. Tkinter was a contender, but unfortunately while it is easy to use, it doesn't provide a modern GUI look and feel. That was a showstopper, at least for me. -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Dabo in 30 seconds?

2005-08-01 Thread Paul McNett
f them, so that an individual developer can "set it and forget it" for each individual app. There are other settings as well, such as event logging, that are useful during testing - we should consolidate all these options into a setup screen of some sort. All in good time! -- Paul McNe

Re: Wheel-reinvention with Python

2005-08-01 Thread Paul McNett
o.ui.dForm): def afterInit(self): self.addObject(MyTextBox) def initProperties(self): self.Caption = "Ground Control To Major Tom" app.MainFormClass = MyForm app.start() -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-08-01 Thread Paul McNett
Mike Meyer wrote: > Paul McNett <[EMAIL PROTECTED]> writes: > >>On Windows and Mac, you download the package and run through the wizard. > > Which package? I'm looking at the sourceforge download site, and don't > see any packages for Python 2.4 on OS X 10.4

Re: Dabo in 30 seconds?

2005-08-02 Thread Paul McNett
In that situation, I had enough control over the deployment to also ship a small smtp client, and automatically email the error without requiring any interaction at all. Clients were impressed when I'd already have a fix for the problem before they even notified me of the issue! -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-08-03 Thread Paul McNett
uch need to build from >>>source if you want the latest and greatest. > > > FWIW, Tiger ships with wxPython pre-installed. Yes, but it's an older version... isn't it 2.4? -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Import question

2005-08-09 Thread Paul McNett
TED]:~/projects/dabo/dabo/ui/uiwx $ python fileB.py myInstance is None [EMAIL PROTECTED]:~/projects/dabo/dabo/ui/uiwx $ python fileA.py myInstance is <__main__.Test object at 0xb7dfcf6c> Is this what you want? BTW, what you call "files", we refer to as "scripts" (if run

Re: Default function arguments behaving badly

2005-08-24 Thread Paul McNett
e): if result is None: result = [] Others will certainly post links to the python docs that explain this. -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

ANN: Dabo 0.4.1

2005-08-31 Thread Paul McNett
e AppWizard in daboide/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

Re: PyGTK or wXPython?

2005-09-13 Thread Paul McNett
the StyledTextControl, which is by far 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

Re: wxGrid

2005-02-28 Thread Paul McNett
Gensek wrote: I have a grid. I want to sort it when a column label is clicked. I know about the EVT_GRID_LABEL_LEFT_DCLICK event, but that is not enough. I do not merely need to know that a label was clicked. I need to know which label was clicked. I do not know how to do that. I suspect you might

How to launch pdf viewer on Mac?

2005-03-10 Thread Paul McNett
Hi, On Windows, os.startfile() does what I want: os.startfile("myDocument.pdf") That launches the default PDF viewer on the system in a separate process. Perfect. On Linux, I understand that there really isn't a standard for determining a default application for a given file type (indeed, there

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 place

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 h

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 see

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 = filedia

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 python?

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: 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: Help with super()

2006-01-12 Thread Paul McNett
return ret v = property(_getv) 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: Help with super()

2006-01-12 Thread Paul McNett
ake a look at this: class A(object): _v = [1,2,3] def _getv(self): print self._v ## hey, look, I'm [4,5,6]!!! v = property(_getv) 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: Help with super()

2006-01-13 Thread Paul McNett
_mro__ tree backwards. -- 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
> self.connect(fileID, mode= 'w') # open the sheet in the 'dOH! . Change to self.connect(fileId, ...) :) -- Paul McNett http://paulmcnett.com http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

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 call

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 m

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" . >>

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

2006-09-08 Thread Paul McNett
1, u'Ziggy Marley', 2, u'Nuevo Reggae')] >>> cur.execute("select customers.id as cust_id, customers.name as cust_name, categories.id as cat_id, categories.name as cat_name from customers inner join cust_cat on cust_cat.cust_id = customers.id inner join categories on categories.id = cust_cat.cat_id where categories.id = '3' order by 2,4") >>> cur.fetchall() [(2, u'David Bowie', 3, u'Male Singers'), (1, u'Ziggy Marley', 3, u'Male Singers')] >>> cur.execute("select customers.id as cust_id, customers.name as cust_name, categories.id as cat_id, categories.name as cat_name from customers inner join cust_cat on cust_cat.cust_id = customers.id inner join categories on categories.id = cust_cat.cat_id where categories.id = 3 order by 2,4") >>> cur.fetchall() [(2, u'David Bowie', 3, u'Male Singers'), (1, u'Ziggy Marley', 3, u'Male Singers')] If I have skipped the test case 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
own url type: List You were expecting u to be a url string like "http://google.com";, but it looks like it is actually a list. I'm not familiar with package xlrd but cell_value() must be returning a list and not a cell value. Presumably, the list contains the cell value 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: 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: 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

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: 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 ind

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

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

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 te

Re: Solipsis: Python-powered Metaverse

2005-05-10 Thread Paul McNett
Joseph Garvin wrote: > I was looking at this earlier today because I was curious how they were > going to handle performance concerns (both due to Python and bandwidth). > I'm having trouble understanding all of the details -- what is the > significance of the use of a torus for the world space? Do

Re: Solipsis: Python-powered Metaverse

2005-05-11 Thread Paul McNett
Ville Vainio wrote: >>>>>>"Paul" == Paul McNett <[EMAIL PROTECTED]> writes: > > > Paul> Only, I couldn't hear what they said back to me because I > Paul> don't have UDP port 6000 open on my firewall and forwarding > Pau

Re: Solipsis: Python-powered Metaverse

2005-05-11 Thread Paul McNett
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Paul McNett <[EMAIL PROTECTED]> wrote: > >>[1] Although, some ISP's are taking it upon themselves to drop or reject >>port 25 traffic. A wrong but understandable stopgap solution to the >>problem

Re: Faster GUI text control

2005-05-13 Thread Paul McNett
Jeremy Bowers wrote: > The problem is that if you're really looking for performance, it may > differ based on the characteristics of the text and the quality of the > target computer, the platform (which you don't mention; GTK may scream in > Linux and make you scream in Windows...), etc., and ther

Re: Solipsis: Python-powered Metaverse

2005-05-13 Thread Paul McNett
Terry Reedy wrote: > While the above is not directly on-topic for c.l.p, it does suggest > possible design considerations for users of the socket module and packets > built on top ;-). > -- including Solipsis, which is such. I contributed to the thread going kind of off-topic, so I'll just follo

Re: Python forum

2005-05-17 Thread Paul McNett
Rocco Moretti wrote: > Dave Brueck wrote: > >>Grant Edwards wrote: >> >>>[In case you can't tell, I hate web forums. I've never seen a >>>single one with a suable UI.] >> >>Amen! Generally they are an abomination. > > It may seem snobish, but my main gripe with most of the web-forums I've > see

Re: execution error

2005-05-23 Thread Paul McNett
Ximo wrote: > Hello, I'm programing an advanced calculator, and I have many problems with > the execution errors, specually with the division by 0. > > And my question is how can show the execution error whitout exit of the > program, showing it in the error output as Wrap the math in a try/ex

Re: Python Impact Analysis Tool ?

2005-05-25 Thread Paul McNett
Terry Hancock wrote: > On Wednesday 25 May 2005 08:27 am, [EMAIL PROTECTED] wrote: > >>Is there an impact analysis tool out there that can cross reference >>python -- VB has a couple of these tools (eg. Visual Expert) > > I could be wrong, but my first impression is that that must be > VB jargon

Re: __init__() not called automatically

2005-05-25 Thread Paul McNett
Sriek wrote: > hi, > i come from a c++ background. i ws happy to find myself on quite > familiar grounds with Python. But, what surprised me was the fact that > the __init__(), which is said to be the equivlent of the constructor in > c++, is not automatically called. What do you mean by automati

Re: Case Sensitive, Multiline Comments

2005-05-26 Thread Paul McNett
for very > little gain. Don't we already have multi-line comments in the form of string literals? -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Python/Excel AddIn (was:Re: Does Python have a Template::Extract equivalent from Perl's CPAN)

2005-05-27 Thread Paul McNett
l and recording a macro, and then taking a look at the vbscript the macro recorded. -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Beginner question: Python types

2005-05-31 Thread Paul McNett
te a newbie in python so I would appreciate any help on this. The above should get you started, even though it won't satisfy your exact needs. -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

PYSH? (was:Re: calling ksh script from python)

2005-06-02 Thread Paul McNett
x27;d love to have all of Python available as my unix shell, while still doing shell-type stuff such as traversing directories, launching applications, etc. There's likely a project that does this already that I'm just unaware of. -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Start application & continue after app exits

2005-06-09 Thread Paul McNett
s is technically unsafe, as it is theoretically possible that another process would create a file of the same name in the same directory and then try to use it, resulting in a race condition between the two processes. This is practically unlikely, however, and I'm a pragmatist. -- Paul McNet

Re: Any way to not create .pyc files?

2005-06-09 Thread Paul McNett
those changes down upon exit of the main application. I just saved the file locations locally in an INI file. -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Start application & continue after app exits

2005-06-09 Thread Paul McNett
x27;s requirement is specifically for winword on Windows, a more specific approach could be used that doesn't involve saving any temporary files at all, such as by using COM automation to build the document. But I hate nonportable solutions! :) -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Single Application Instance Example

2005-06-14 Thread Paul McNett
le to > the already running instance so that I can push it to the foreground > as well. There are ways using win32 to get the handle to the existing process, but I'm too rusty with win32 to offer that part of the solution. -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

Re: splitting delimited strings

2005-06-15 Thread Paul McNett
> @pv@ 0 @db.changex@ 44 44 @mh@ @mh@ 1118875308 0 @ :@@: :: @ > > (this is from a perforce journal file, btw) -- Paul McNett http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list

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,

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 operati

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

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

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 >>> scri

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 "B

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 w

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 f

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

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 r

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 ?

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

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 ful

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 writ

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

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

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 up

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 f

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: 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: 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: 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.connec

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

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 fil

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 MySQ

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 ~ htt

  1   2   >