Re: "cx_Freeze.freezer.ConfigError: no initscript named Console"

2009-10-09 Thread ici
On Oct 1, 2:19 pm, John wrote: > cx_freeze v4.01 > Python 2.6 > Ubuntu Jaunty > > Following the example of 'cx-freeze hello.py', I'm getting the error > message below. I put all of the error keywords into google and found no > hits. > > Some people in various posts have said to use Python 2.5 but

Re: Python-Qt problem with pyuic4

2009-09-23 Thread ici
On Sep 24, 4:45 am, Xavier Lapointe wrote: > Hello, > > Let's suppose you're on Windows. > > If pyuic4 can't be found, you can specified the direct path: > C:\Python26\pyuic4.bat -o Drive:\your\Path\ui_myGUI.py -x > Drive:\your\Path\myGUI.ui > You might need to replace the Python26 with your own v

Re: SQLite or files?

2009-09-17 Thread ici
I like shelve for saving small amounts of data, user preferences, recent files etc. http://docs.python.org/library/shelve.html For Qt use QtCore.QCoreApplication.setOrganizationName, QtCore.QCoreApplication.setApplicationName than setValue, value from QtCore.QSettings. -- http://mail.python.org/m

Re: Looking for a pure Python chart drawing module

2009-09-15 Thread ici
On Sep 15, 8:25 pm, John Nagle wrote: > I'm looking for something that can draw simple bar and pie charts > in Python.  I'm trying to find a Python package, not a wrapper for > some C library, as this has to run on both Windows and Linux > and version clashes are a problem. > > Here's the list fro

Re: Application-global "switches"?

2009-09-04 Thread ici
On Sep 4, 9:29 pm, kj wrote: > I'm looking for the "best-practice" way to define application-global > read-only switches, settable from the command line.  The best > example I can think of of such global switch is the built-in variable > __debug__.  This variable is visible everywhere in a program

Re: Python equivalent to PHP's SPL __autoload() ??

2008-04-27 Thread ici
On Apr 27, 10:34 pm, Ixiaus <[EMAIL PROTECTED]> wrote: > I was curious (and have spent an enormous amount of time on Google > trying to answer it for myself) if Python has anything remotely > similar to PHP's SPL __autoload() for loading classes on the fly?? > > After digging through docs I feel do

Re: Floating Number format problem

2007-06-12 Thread ici
On Jun 12, 10:10 am, <[EMAIL PROTECTED]> wrote: > How could I format the float number like this: (keep 2 digit > precision) > 1.002 => 1 > 1.12 => 1.12 > 1.00 => 1 > 1.567 => 1.57 > 2324.012 => 2324.01 > > I can not find any Formatting Operations is able to meet my > requirement.

Re: Bootstrapping

2007-05-24 Thread ici
On May 24, 5:53 pm, Mauler <[EMAIL PROTECTED]> wrote: > I need some help with adding bootstrap code to the core of python, the > idea is to leave a super base core inside a zip file (python25.zip > works right out of the box) and leave the rest in separate zip > modules. Making it more friendly wit

Re: Compiling Python code within a module

2007-05-18 Thread ici
On May 19, 12:52 am, Mitko Haralanov <[EMAIL PROTECTED]> wrote: > For various reason, what I need to do is be able to send some Python > code (mostly entire functions in the form of a string) to a remote > server (written in Python), have that server compile the code and > insert it in the local na

Re: Did you read about that?

2007-05-06 Thread ici
On May 6, 8:55 pm, gene tani <[EMAIL PROTECTED]> wrote: > On May 6, 6:26 am, "Martin P. Hellwig" <[EMAIL PROTECTED]> wrote: > > > > > Dustan wrote: > > > On May 6, 8:20 am, Steven D'Aprano > > > <[EMAIL PROTECTED]> wrote: > > >> On Sun, 06 May 2007 04:53:23 -0700, Dustan wrote: > > >>> SPAM! > > >>

Re: exporting a record from a database to a MS Word document.

2007-05-06 Thread ici
Levi Campbell wrote: > Is there a way to export a record from a database kept with bsddb to > MS Word, possibly with some type of formatting data? import win32com.client try: import psyco; psyco.full() except ImportError: pass app = win32com.client.Dispatch("Word.Application") app.Visible = Tru

Re: exporting a record from a database to a MS Word document.

2007-05-06 Thread ici
Levi Campbell wrote: > Is there a way to export a record from a database kept with bsddb to > MS Word, possibly with some type of formatting data? import win32com.client try: import psyco; psyco.full() except ImportError: pass app = win32com.client.Dispatch("Word.Application") app.Visible = Tru

Re: c macros in python.

2007-05-06 Thread ici
On May 7, 12:01 am, [EMAIL PROTECTED] wrote: > Hey, > > I'm writing a script to generate code. I'm a bit tired of typing > outfile.write(). Does python have a way to c-like macros? Every > instance of o(...) in the code will be replaced by outfile.write(...)? All in Python is pointer to object,

Re: adding methods at runtime and lambda

2007-05-03 Thread ici
On May 3, 10:52 pm, Mike <[EMAIL PROTECTED]> wrote: > I was messing around with adding methods to a class instance at > runtime and saw the usual code one finds online for this. All the > examples I saw say, of course, to make sure that for your method that > you have 'self' as the first parameter.

Re: win32com.client Excel Color Porblem

2007-05-02 Thread ici
On May 3, 1:37 am, Ray <[EMAIL PROTECTED]> wrote: > Hi, > > I need to use cell's background color. > > when I record a macro from excel, it shows: > > Rows("7:7").Select > With Selection.Interior > .ColorIndex = 8 > .Pattern = xlSolid > > how do I run it from python win32com

Re: newbie: HTTPS screen scraping

2007-04-21 Thread ici
On Apr 21, 11:38 am, [EMAIL PROTECTED] wrote: > Hi, > Can anyone help me out here. I would like to authenticate myself to > a website which uses HTTPS and then after authentication, I would like > to get the contents of the webpage. How can this be done using python. > I have tried urllib and u

Re: moving multiple directories

2007-04-16 Thread ici
On Apr 16, 9:36 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > DataSmash wrote: > > Hi, > > I need to organize thousands of directories full of files. > > I want to move these directories into other subdirectories. > > For example, all the directories that start with 01, move to > > a directory named

Re: Python Feature Request: Allow changing base of member indices to 1

2007-04-14 Thread ici
On Apr 14, 1:27 pm, [EMAIL PROTECTED] wrote: ... > This would mean: > foo = "foo" > => foo[1] == 'f' > class Str1(str): def __getitem__(self,i): return str.__getitem__(self,i-1) s1 = Str1("foo") print s1[1] -- http://mail.python.org/mailman/listinfo/python-list

Re: a better solution for GUI in python

2007-03-11 Thread ici
On Mar 11, 1:03 pm, "ce" <[EMAIL PROTECTED]> wrote: > Hi, > > My company is using python currently for our website. We need to > develop a GUI front-end for our ERP that would be portable (Windows > and Linux). > > My question is which solution would be better for the GUI (and easier > to implement

Re: Creating a DLL file from Python Code

2007-03-09 Thread ici
On Mar 9, 2:08 pm, [EMAIL PROTECTED] wrote: > Hi, > > I would like to request your attention for this very specific issue: > > I have several classes in Python, and now I want simply re-use it, in > other language. > > The closest to solution I think I came was with this > site:http://www.py2exe.o