ctypes: catch system exit from C library

2011-11-03 Thread Martin Landa
application? Thanks in advance, Martin -- http://mail.python.org/mailman/listinfo/python-list

Peculiarity of '@' in logging.Formatter

2011-11-21 Thread Charlie Martin
This is what seems like an odd bug, but in code I'd thing often-enough used it must be the expected behavior and I just don't understand. Please, sirs/mesdames, is this a bug? Example code: begin code --- #!/usr/bin/env python """ @-character WTF? """ import sy

Re: Peculiarity of '@' in logging.Formatter

2011-11-21 Thread Charlie Martin
Oops, forgot the python version etc: bash $ /usr/bin/env python -V Python 2.7 On SuSE 11.4 bash $ uname -a Linux crmartin 2.6.37.6-0.9-desktop #1 SMP PREEMPT 2011-10-19 22:33:27 +0200 x86_64 x86_64 x86_64 GNU/Linux -- http://mail.python.org/mailman/listinfo/python-list

[ANN] pyspread 0.2.0

2011-12-24 Thread Martin Manns
ndows support discontinued + New pys save file format + A lot of bug fixes and small changes to the user interface Enjoy Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: open office in another language?

2012-01-11 Thread Martin Manns
If you are looking for Python based spreadsheets, you may be interested in ResolverOne (commercial product) http://www.resolversystems.com/products/resolver-one/ or in pyspread (GPL, my own effort) http://manns.github.com/pyspread/ Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python install Win 7 Problem

2013-04-03 Thread Martin Schöön
simply install Python(x,y) https://code.google.com/p/pythonxy/ /Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Ubuntu package "python3" does not include tkinter

2013-04-22 Thread Bob Martin
in 695509 20130422 081727 Steven D'Aprano wrote: >I think that if you are worrying about the overhead of the tkinter >bindings for Python, you're guilty of premature optimization. The tkinter >package in Python 3.3 is trivially small, under 2 MB. "trivially small"? 30 years ago a small mainfram

Re: OO in Python? ^^

2005-12-10 Thread Martin Christensen
still took a while to sink in. From what I can tell, you're in somewhat the same situation, and the two of us are far from unique. As I said in the beginning, Python newbies with a background in statically typed languages typically have a lot to unlearn, but in my opinion, it&#

Re: I want a Python Puppy !

2005-12-13 Thread Martin Christensen
t seems that a general-purpose distro with whatever development tools the individual programmer needs is going to be a perfect fit. Any specialised development distro sounds like specialisation for its own sake to me. Martin -BEGIN PGP SIGNATURE- Ve

Re: Still Loving Python

2005-12-14 Thread Martin Christensen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >>>>> "Bengt" == Bengt Richter <[EMAIL PROTECTED]> writes: Bengt> De gustibus non disputandum, or whatever ;-) Yeah, and quidquid latine dictum sit, altum viditur. :-) Martin -BEGIN PGP SIGNATURE- Version

Re: PHP = Perl Improved

2005-12-14 Thread Martin Christensen
know. You might have better luck if you phrase your questions in Perl, too, since he doesn't seem to understand it when people tell him to bugger off in plain English. Say, there's a thought... Martin -BEGIN PGP SIGNATURE- Version: GnuPG

Self-awareness of imported modules? Do they know where they live?

2005-12-14 Thread Martin M.
ly get the path to the main script. But can this be done in Python? Can modules know where they are currently located, where they live? Can they be self-aware? I hope you understand my problem and I appreciate any helpful answers! Happy scripting! Martin P.S.: Background-background: I try to buil

Re: Self-awareness of imported modules? Do they know where they live?

2005-12-15 Thread Martin M.
) results in: martin% python main.py /Volumes/CodeIsland/Projects/glashaus/glashaus0.1a/lib/being.pyc Now I can use os.path.split() to get the parent directory and os.path.join() to target my AppleScript file. Thanks again! Martin M. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE (was: PythonWin troubleshooting)

2005-12-15 Thread Martin Miller
with actual experience using Komodo with Python is listening, I'd be very interested in hearing what you think of it or other alternatives (I plan on taking a look at PyScripter and any others I hear about). Best, -Martin == chuck wrote: > Apparently not too many people use or a

Re: Clearing the Tkinter Window

2005-12-16 Thread Martin Franklin
#x27;wizard' type GUI and want to show the user the 'Next' page simply forget the current page and pack the next one in it's place. Another way is to grid each 'page' over the top of each other and simply change the 'raise' order (with tkraise method) not 100% sure if this works though, i've not used it directly myself... Cheers Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: text manipulation

2005-12-16 Thread Martin Franklin
ons for this job... strings have methods in python so for example: for line in file: if line.startswith("#user_defined_variable = no"): line.replace("#user_defined_variable = no", "user_defined_variable = yes") ... continue processing file / writing out stuff as you go Cheers Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter: drop-down widget

2005-12-16 Thread Martin Franklin
onMenu: > http://effbot.org/tkinterbook/optionmenu.htm > > 2. Pmw OptionMenu: > http://pmw.sourceforge.net/doc/OptionMenu.html > > I would opt for these before a roll-your-own version. try searching for a ComboBox I think you will have more hits I know Pmw has one, it is a

Re: text manipulation

2005-12-16 Thread Martin Franklin
Martin Franklin wrote: > Johhny wrote: > >>Hello, >> >>I am trying to write a script in python (to replace a perl script with >>limited functionality). Now I have some issues. Currently I am using >>the perl to load the file then regex parse certain lines to

Re: Invoking Unix commands from a Python app

2005-12-16 Thread Martin Blume
\n", pf); } // file seems ok if (acct(pf) == -1) { printf("acct failed %d=%s\n", errno, strerror(errno)); } // oops, acct failed return 0; } // main HTH Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: putting checkbuttons in a listbox

2005-12-21 Thread Martin Franklin
rd table widget see here for more details :- http://tkinter.unpythonic.net/wiki/Widgets Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Which Python web framework is most like Ruby on Rails?

2005-12-21 Thread Martin Christensen
e of this really matters, you know. The GPL only requires that you share your source code if you _distribute_ your modifications. Since you make your modifications exclusively for your own (your company's) use, you are not required to share anything. Thus the whole debate is pretty much mo

Re: Which Python web framework is most like Ruby on Rails?

2005-12-21 Thread Martin Christensen
e on Karrigell or any other GPL'ed web framework but does not share the code with anyone, it cannot be considered to be published nor distributed. Hence the GPL is a perfectly fine license for this kind of use. Martin -BEGIN PGP SIGNATURE- Version: G

Re: Which Python web framework is most like Ruby on Rails?

2005-12-21 Thread Martin Christensen
uct some day." Sounds like distribution to me. My bad. I somehow managed to miss that. Martin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using Mailcrypt+GnuPG <http://www.gnupg.org> iEYEARECAAYFAkOplbwACgkQYu1fMmOQldXsSwCg0TRh98gcr+0xzhN4mKFCq3y8 SScAo

Re: How do I redirect output to a file and to the console screen?

2005-12-28 Thread Martin Miller
at should help (see 'class Tee') if coupled with the above: > http://groups.google.com/group/comp.lang.python/msg/5ab52448c1cbc10e -Martin -- http://mail.python.org/mailman/listinfo/python-list

Vector math library

2005-12-31 Thread Martin Vilcans
es SciPy, Scientific, Numeric and NumericArray and the relations between them. Any suggestions on what library I should use? Best regards, Martin Vilcans http://www.librador.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Scrollbar not working

2006-01-03 Thread Martin Franklin
Dustan wrote: > I'm trying to get a scrollbar bound with a Frame, and I keep on getting > a scrollbar, but it doesn't actually scroll. Some help, please? > It can be tricky getting an empty frame to scroll, can you post your example code so that we might be more helpful. Here is an example of b

Re: Tkinter Scrollbar not working

2006-01-03 Thread Martin Franklin
Dustan wrote: > Martin Franklin wrote: > >>Dustan wrote: >> >>>I'm trying to get a scrollbar bound with a Frame, and I keep on getting >>>a scrollbar, but it doesn't actually scroll. Some help, please? >>> >> >>It can be tricky ge

Re: Can't import Tkinter module.

2006-01-10 Thread Martin Franklin
for Python. > What should I do for it as I'm not a root? > as root you could do: yum install tkinter Without root, you will have to build python + tkinter yourself from the source (available from www.python.org) Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: batch tiff to jpeg conversion script

2006-01-11 Thread Martin Miller
be as flexible as your Python script, it's completely possible and fairly easy to automate such a conversion within Photoshop using 'Actions', which are like recorded macros, coupled with the Automate | Batch... submenu. Best, -Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: batch tiff to jpeg conversion script

2006-01-12 Thread Martin Miller
off-topic for this newsgroup. Feel free to contact me directly if you would like to discuss in more detail how to do this sort of thing from within Photoshop. Best, -Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-14 Thread Martin Maney
Mike Meyer <[EMAIL PROTECTED]> wrote: > >> http://beta.python.org > In particular, creating a good-looking design that remains readable in > all possible browser configurations is impossible. Getting one that is > readable in all reasonable browser configurations is hard, unless you > make your d

Linking to Python for Windows CE

2006-01-16 Thread Martin Evans
h script output displayed in our own output window. We also provide our own Python extension library. All works on ok on the desktop version. Any help would gratefully appreciated. Thanks. Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Linking to Python for Windows CE

2006-01-16 Thread Martin Evans
Sorry, false alarm. It turned out one of my own files was using fopen/fclose and this was upseting things. After removing those it linked fine. Martin Evans wrote: > I've just been tasked with porting our desktop embedded Python support > onto our existing CE offering. I&#x

msvcp71.dll and Python 2.4

2006-01-16 Thread Taylor, Martin
Back on 8-Feb-05, "Martin v. Löwis" martin at v.loewis.de  said:   >> "An application should use and redistribute msvcr71.dll, and it should>> avoid placing a copy or using an existing copy of msvcr71.dll in the>> system directory. Instead, the application

Re: Problem with FTPLib and incomplete files on some downloads

2006-01-17 Thread Martin Franklin
) for rFile in ftp.nlst(): print "Getting : ", rFile rSize = ftp.size(rFile) lFile = open(rFile, "wb") ftp.retrbinary("RETR %s" %rFile, lFile.write) lSize = lFile.tell() lFile.close() if rSize==lSize: print "Transfer complete" else: print "BAD Transfer", rSize, lSize ftp.close() HTH Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: what's wrong with this if statement?

2006-07-21 Thread Philippe Martin
John Salerno wrote: > Here's the full code, but you can probably safely ignore most of it, > especially the wxPython stuff: > > --- > > import wx > > > class MyFrame(wx.Frame): > > def __init__(self): > wx.Frame.__init__(self, parent=None, id=wx.I

Re: About Embedding PyWin or wxPython

2006-07-25 Thread Philippe Martin
Mr. Roboto wrote: > > Folks: I want to embark on a project to add Python (actually, wxPython > or PythonWin) to a new Windows app I want to start writing soon. > Essentially, I want to take VB6 (or pos Delphi) and construct the app > framework/core functionality using one of those languages, the

Re: About Embedding PyWin or wxPython

2006-07-25 Thread Philippe Martin
yet another story, for another day. > > Making XRC into a more fully-featured tool (more on par w/ the > aforementioned) is a way nice project unto itself, but not right now. > However, the desk accessory I've mentioned is an excellent 1st step > towards *possibly* doing somet

Re: simple question

2006-07-26 Thread Philippe Martin
Maxine Weill wrote: > I need to install Python Imaging Library (PIL) - imaging-1.1.5.tar.gz > (source ) onto Suse Linux 10.1 system in order for (latest) Scribus > 1.3.3.2 to install and work. > > Plesae indicate how I perform PIL install (exact commands/procedures) in > manner where files are "

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread Philippe Martin
zxo102 wrote: > Hi everyone, > I am using a python socket server to collect data from a socket > client and then control a image location ( wxpython) with the data, > i.e. moving the image around in the wxpython frame. >But the "app.MainLoop()" in wxpython looks like conflicting with > th

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread Philippe Martin
Philippe Martin wrote: > zxo102 wrote: > >> Hi everyone, >> I am using a python socket server to collect data from a socket >> client and then control a image location ( wxpython) with the data, >> i.e. moving the image around in the wxpython frame. >

BCD List to HEX List

2006-07-30 Thread Philippe Martin
Hi, I'm looking for an algo that would convert a list such as: I'm using python to prototype the algo: this will move to C in an embedded system where an int has 16 bits - I do not wish to use any python library. l1 = [1,2,3,4,6,7,8] #represents the decimal number 12345678 l2 = func (l1) # l2 =

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-30 Thread Philippe Martin
Grant Edwards wrote: > On 2006-07-30, Philippe Martin <[EMAIL PROTECTED]> wrote: > >> If you get rid of app.MaiLoop(), you basically get rid of all GUI events. >> You need to have you server in a separate thread. > > Isn't there any way to use wxW

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Philippe Martin wrote: > >> I'm looking for an algo that would convert a list such as: >> >> I'm using python to prototype the algo: this will move to C in an >> embedded sy

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Philippe Martin wrote: > >> Marc 'BlackJack' Rintsch wrote: >> >>> And now please describe you problem a little better. ;-) >> >> I'll try. >> >> first

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
John Machin wrote: > Philippe Martin wrote: >> Hi, >> >> I'm looking for an algo that would convert a list such as: > > Such as what? > >> >> I'm using python to prototype the algo: this will move to C in an >> embedded system whe

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
Paul Rubin wrote: > Philippe Martin <[EMAIL PROTECTED]> writes: >> I'm using python to prototype the algo: this will move to C in an >> embedded system where an int has 16 bits - I do not wish to use any >> python library. >> >> l1 = [1,2,3,4,6,

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
John Machin wrote: > Philippe Martin wrote: >> John Machin wrote: >> >> > Philippe Martin wrote: >> >> Hi, >> >> >> >> I'm looking for an algo that would convert a list such as: >> > >> > Such as what?

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
Dennis Lee Bieber wrote: > On Sun, 30 Jul 2006 16:39:47 -0500, Philippe Martin > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> >> My apologies, I clearly made a mistake with my calculator, yes the >> resulting array I would need is [0

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
Paul Rubin wrote: > Philippe Martin <[EMAIL PROTECTED]> writes: >> I'm just using Python to prototype, so I cannot use any of these great >> features of the language. > > I think when writing a prototype, you should use whatever features you > want, except m

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
John Machin wrote: > Philippe Martin wrote: > >> >> Thanks John, I do not have a long available on the device: stuck with 16 >> bits. >> > > What does "available on the device" mean? Having a "long" is a property > of a C complier, n

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
Philippe Martin wrote: > Hi, > > I'm looking for an algo that would convert a list such as: > > I'm using python to prototype the algo: this will move to C in an embedded > system where an int has 16 bits - I do not wish to use any python library. > > l1

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
John Machin wrote: > Have you considered asking on a newsgroup where your problem might > actually be on-topic, like: > comp.lang.c Yes, I came here for the "algorithm" question, not the code result. Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
John Machin wrote: > > Philippe Martin wrote: >> Philippe Martin wrote: >> >> > Hi, >> > >> > I'm looking for an algo that would convert a list such as: >> > >> > I'm using python to prototype the algo: this will move to

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
John Machin wrote: > > Philippe Martin wrote: >> John Machin wrote: >> >> > Have you considered asking on a newsgroup where your problem might >> > actually be on-topic, like: >> > comp.lang.c >> >> Yes, I came here for the &

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
Dennis Lee Bieber wrote: > On Sun, 30 Jul 2006 17:07:57 -0500, Philippe Martin > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> Paul Rubin wrote: >> >> > >> > If you prefer, You can do it all in one line: >> > >&g

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
Grant Edwards wrote: > On 2006-07-31, John Machin <[EMAIL PROTECTED]> wrote: > >>> but if you >>> wish ==> >>> >>> on one device, the processor in an 8-bit arm and the X-compiler is made >>> by epson >> >> 1. You still haven't *NAMED* the CPU and the compiler!! > > He obviously doesn't want to h

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
Philippe Martin wrote: > Grant Edwards wrote: > >> On 2006-07-31, John Machin <[EMAIL PROTECTED]> wrote: >> >>>> but if you >>>> wish ==> >>>> >>>> on one device, the processor in an 8-bit arm and the X-compiler is made

Re: BCD List to HEX List

2006-07-30 Thread Philippe Martin
John Machin wrote: > Philippe Martin wrote: >> John Machin wrote: >> >> > >> > Philippe Martin wrote: >> >> Philippe Martin wrote: >> >> >> >> > Hi, >> >> > >> >> > I'm looking for an algo t

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
Paul Rubin wrote: > Philippe Martin <[EMAIL PROTECTED]> writes: >> > Why are you avoiding naming the chip and its compiler? >> >> I must disagree on that one: There are many threads on this site where >> people just have fun talking algorithm. I'm not an

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
John Machin wrote: > > Philippe Martin wrote: > >> >> 3. How does the device manage to compute the 8-decimal-digit number >> >> that is your input?? >> >> What device manager ? think about it before being rude >> > > No device man

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
John Machin wrote: > Philippe Martin wrote: > >> >> Yes I had arm in mind (for some reason) while it is the Smc8831 >> (http://www.google.com/url?sa=U&start=1&q=http://www.epsondevice.com/www/PDFS/epdoc_ic.nsf/5388db40b5eee4f949256a9c001d589f/944b7300

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
Paul Rubin wrote: > Philippe Martin <[EMAIL PROTECTED]> writes: >> I actually need numbers much larger than 32 bits. > > What is the max size hex number you need? What is the application if > you don't mind my asking? Well I am under NDA so I cannot tell you wha

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
Paul Rubin wrote: > Philippe Martin <[EMAIL PROTECTED]> writes: >> Well I am under NDA so I cannot tell you what the application is - I need >> numbers (dec) with up to 24 digits. > > You actually need to represent numbers up to 10**24?? > >> As I said, I w

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
Paul Rubin wrote: > Philippe Martin <[EMAIL PROTECTED]> writes: >> Well I am under NDA so I cannot tell you what the application is - I need >> numbers (dec) with up to 24 digits. > > You actually need to represent numbers up to 10**24?? > >> As I said, I w

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
Paul Rubin wrote: > Philippe Martin <[EMAIL PROTECTED]> writes: >> On device #1 no constraint for my purpose. On the smartcard, the tradeoff >> is between using EEPROM (plenty + slow + small life expectancy) for temp >> variables versus RAM (very little) ... but I

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
[EMAIL PROTECTED] wrote: > > Philippe Martin wrote: >> Yes, I came here for the "algorithm" question, not the code result. > > To turn BCD x to binary integer y, > > set y to zero > for each nibble n of x: > y = (((y shifted left 2) + y) shifted

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
John Machin wrote: > So why don't you get a freely available "bignum" package, throw away > the bits you don' t want, and just compile it and use it, instead of > writing your own bug-ridden (see below) routines? Oh yeah, the bignum > package might use "long" and you think that you don't have acce

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
Sorry forgot a few answers/comments: John Machin wrote: > SHOULD BE >= >currently add([6, 6], [4, 4] -> [10, 10] True, thanks > *** try - 10 instead of % 10 > If the first operand is > 19, you have a bug! > This might save a few CPU cycles on your smartcard can it ? each array value will be

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
John Machin wrote: > Have you actually tried it? Do you mean it barfs on the word "long" > [meaning that it's not an ANSI-compliant C compiler], or that "long" is > only 16 bits? :-) if the documentation tells me there is no 32 bit support, why should I not believe it ? > because (1) [like I sa

Re: BCD List to HEX List

2006-07-31 Thread Philippe Martin
John Machin wrote: > > Simon Forman wrote: >> Philippe, please! The suspense is killing me. What's the cpu!? >> >> For the love of God, what's the CPU? >> >> I-can't-take-it-anymore-it's-such-a-simple-question-ingly yours, > > Yes, please . > > I've found a C compiler manual on the web f

Re: [Linux] What toolkit for a good grid/spreadsheet widget?

2006-08-03 Thread Philippe Martin
Vincent Delporte wrote: > Hello > > I'd like to use Python under Linux to write a business application, > and I'll need a good grid/spreadsheet editable widget, maybe not on > par with eg. ComponentOne's excellent VSFlexGrid > (http://www.componentone.com/newimages/flexgrid_02_lg.gif), but > some

Re: [Linux] What toolkit for a good grid/spreadsheet widget?

2006-08-04 Thread Philippe Martin
jean-michel bain-cornu wrote: > Hi, >> Thx for the two pointers. Are those widgets more than just tables, ie. >> can I edit the contents, including displaying a combo box, can items >> be grouped or hierarchized, or are they just basic, read-only tables >> to display results? >> >> I need this ki

Re: why did wxpython MakeActiveXclass stopped working?!?!!?!?

2006-08-06 Thread Philippe Martin
jojoba wrote: > HI > I wrote a little wxpython program with an embedded windows media > player. > It worked great. Recently, I reinstalled windows and then wxpython > (most likely a newer version than i had before). Now when i run the > exact same code, i get this error: > > File "C:\Documents

Re: why did wxpython MakeActiveXclass stopped working?!?!!?!?

2006-08-06 Thread Philippe Martin
Philippe Martin wrote: > jojoba wrote: > >> HI >> I wrote a little wxpython program with an embedded windows media >> player. >> It worked great. Recently, I reinstalled windows and then wxpython >> (most likely a newer version than i had before). Now when

Re: embedding console in wxpython app

2006-08-06 Thread Philippe Martin
Janto Dreijer wrote: > I'm writing a Linux filemanager using wxPython. I'd like to embed a > bash console inside it. I have found the Logilab pyqonsole > (http://www.logilab.org/projects/pyqonsole), but it uses PyQT. > > Does anyone know how to do this from wx? > Is it possible to embed a PyQT wi

Re: why did wxpython MakeActiveXclass stopped working?!?!!?!?

2006-08-06 Thread Philippe Martin
> the embedded windows media player. But Im guessing i made that py2exe > distributable with older pywin32 and older wxpython. > This makes me think that one of the newer versions of pywin32 or > wxpython is giving me that error trouble. > > Any other ideas on how to rectify t

is it possible to dividing up a class in multiple files?

2006-08-07 Thread Martin Höfling
Hi there, is it possible to put the methods of a class in different files? I just want to order them and try to keep the files small. Regards Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: is it possible to dividing up a class in multiple files?

2006-08-07 Thread Martin Höfling
never felt the need to spread a class over several files - au > contraire, I despise Java for forcing me to only have one top level class > per file. You're probably right. I'll think about it if it's possible to move some stuff out of the class. Thanks Martin --

Re: New to Python-- Help

2006-08-08 Thread Philippe Martin
John & Mary Cook wrote: > I just installed Python on Windows XP Pro. When I enter 'python' at the > >>> prompt in Pythonwin IDE I get the following: > > Traceback (most recent call last): >File "", line 1, in ? > Name Error: name 'python' is not defined > > Can anyone help? > > Thank you,

Re: Tkinter module not found

2006-08-11 Thread Philippe Martin
Shuaib wrote: > Hey, > > Even though I freshly installed Tcl and Tk, python still seem to have > problems accessing Tkinter module. Here is what says when I do "import > Tkinter" > > == > Traceback (most recent call last): > File "", line 1, in ? > ImportError: No module named Tkinter > == >

Re: hide python code !

2006-08-11 Thread Philippe Martin
Bayazee wrote: > hi > can we hide a python code ? > if i want to write a commercial software can i hide my source code from > users access ? > we can conver it to pyc but this file can decompiled ... so ...!! > do you have any idea about this ...? > > --- > Fir

Re: hide python code !

2006-08-11 Thread Philippe Martin
Bayazee wrote: > Hi, > ThnaX for Your Answers ... > i am an open source programmer ... ! and i never like to write a closed > source app or hide my codes ! it just a question that i must > answer/solve it! > one of site ( www.python.ir ) users asked this question ! but > unfortunately i have't any

Re: Compiling wxPython app for Windows; Single EXE

2006-08-14 Thread Philippe Martin
Vincent Delporte wrote: > Hi > > I browsed the archives, but since some messages date back a bit, I > wanted to make sure that > > - py2exe is still the best tool in town to compile Python scripts to > run on a Windows host that doesn't have Python installed, including > wxWidgets/wxPython > >

Re: hide python code !

2006-08-15 Thread Philippe Martin
Bayazee wrote: > > Armin Steinhoff wrote: >> Bayazee wrote: >> > hi >> > can we hide a python code ? >> > if i want to write a commercial software can i hide my source code from >> > users access ? >> > we can conver it to pyc but this file can decompiled ... so ...!! >> > do you have any idea ab

Re: The Semicolon Wars as a software industry and human condition

2006-08-17 Thread Philippe Martin
>>It was philosophers that got us out of that Dark Ages mess, and no small >>number of them lost their lives in doing so. And today, the philosophy >>majors are the butts of the most jokes, because after the philosophers >>succeeded in opening our minds, we forgot why we needed them. Look east X

Re: How to fill a form

2006-08-17 Thread Philippe Martin
Sulsa wrote: > On Tue, 15 Aug 2006 03:37:02 - > Grant Edwards <[EMAIL PROTECTED]> wrote: > >> On 2006-08-15, Sulsa <[EMAIL PROTECTED]> wrote: >> >> > I want to fill only one smiple form so i would like not to use >> > any non standard libraries. >> >> Then just send the HTTP "POST" request

Re: How to get the ascii code of Chinese characters?

2006-08-19 Thread Philippe Martin
many_years_after wrote: > Hi,everyone: > > Have you any ideas? > > Say whatever you know about this. > > > thanks. Hi, You mean unicode I assume: http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml Regards, Philippe -- http://mail.python.org/mailman/listinfo/pytho

Re: text editor suggestion?

2006-08-19 Thread Philippe Martin
John Salerno wrote: > Ok, I know it's been asked a million times, but I have a more specific > question so hopefully this won't be just the same old post. I've tried a > few different editors, and I really like UltraEdit, but it's > Windows-only and I'm working more on Linux nowadays. > > Here ar

Re: How to get the ascii code of Chinese characters?

2006-08-19 Thread Philippe Martin
Philippe Martin wrote: > many_years_after wrote: > >> Hi,everyone: >> >> Have you any ideas? >> >> Say whatever you know about this. >> >> >> thanks. > Hi, > > You mean unicode I assume: > http://www.ri

Re: write eof without closing

2006-08-19 Thread Philippe Martin
cage wrote: > hello > > can i write a eof to a file descriptor without closing it? > like: > fd.write(EOF) > or something > > grts, > ruben No but there is an EOF to the file anyway, even if it is open. I recall under MS-DOS, you could create a file of size N without writing to it (some INT21

Py_BuildValue("I", ...) does not work

2006-08-21 Thread Martin Kulas
" for more information. >>> import mini >>> mini.foo() Traceback (most recent call last): File "", line 1, in ? SystemError: bad format char passed to Py_BuildValue >>> Is Python's documentation wrong (I hope not)? Or, have I missed anything? Tanks in advance, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Py_BuildValue("I", ...) does not work

2006-08-21 Thread Martin Kulas
r Installing 2.4.3 Py_BuildValue() eats "I" as format string without any problems :-) Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: key not found in dictionary

2006-08-22 Thread Philippe Martin
KraftDiner wrote: > I have a dictionary and sometime the lookup fails... > it seems to raise an exception when this happens. > What should I do to fix/catch this problem? > > desc = self.numericDict[k][2] > KeyError: 589824 < This is the error that is being produced, > because there is

Everything is a distributed object

2006-10-09 Thread Martin Drautzburg
Hello all, I've seen various attempts to add distributed computing capabilities on top of an existing language. For a true distributed system I would expect it to be possible to instantiate objects of a remote class or to subclass a remote class and other stuff like this. My impression is that tho

Re: Everything is a distributed object

2006-10-10 Thread Martin Drautzburg
Steve Holden wrote: > Unfortunately the overhead of supporting distribution is way too high to > want to invoke it between two objects living in the same process. Well I was thinking along the lines of "object" and "proxy-object" where a proxy object is a handle to a remote object. Sending a pro

Max-plus library

2006-10-16 Thread Martin Manns
Thanks Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Max-plus library

2006-10-17 Thread Martin Manns
Sébastien Boisgérault wrote: > Robert Kern wrote: >> Martin Manns wrote: >>> Hello, >>> >>> Is there any library that allows employing max-plus dioids in >>> python (e.g. based on numpy/scipy)? >> Google says "no" and I haven'

PyDoc link to source code

2006-10-30 Thread Taylor, Martin
x27;t know what to do with a .py file (should treat it like plain text).  Does anyone know how to make these links work?   Thanks,   C. Martin Taylor Sr. Test Automation Specialist Texas Instruments, Inc. Educational and Productivity Solutions 7800 Banner Dr. MS 3908 Dallas, TX 75251 --

Re: Make all files extension lower by a given directory name

2006-11-03 Thread Martin Miller
Tim Chase wrote, in part: > ... > I've found that Win32 doesn't often take a rename if the origin > and destination differ only in case[*]. Thus, to change the > case, I've had to do *two* renames...one to, say, prefix with an > underscore and change the case to my desired case, and then one > to

<    1   2   3   4   5   6   7   8   9   10   >