Re: [Pythonmac-SIG] Python Unicode and NSString...

2006-05-30 Thread whamoo
On 30/mag/06, at 12:39, Ronald Oussoren wrote:Not teribly relevant, but there's a buglet in your exception dumping code. If you want to print the type of the exception you caught you should use "print e.__class__, e".Yes i know =)) it's an old macro on my editor that i forgot always to change, now

Re: [Pythonmac-SIG] Python Unicode and NSString...

2006-05-30 Thread whamoo
On 30/mag/06, at 11:20, Bob Ippolito wrote:Show some code. It's likely that you actually aren't using Python unicode at all given the screenshots. You have 100% reason, there was a problem in my handler for the del.icio.us API =PSorry all and thanks a lot for the support, now i must release a new v

Re: [Pythonmac-SIG] Python Unicode and NSString...

2006-05-30 Thread whamoo
On 30/mag/06, at 10:07, Nicholas Riley wrote:What are you trying to do?  If the string is already Unicode, PyObjCwill make it into a NSString for you. Ok i have unicode python string, i was building a extra menu on run time, but if I passthe unicode python string for creating the menu, the letter l

[Pythonmac-SIG] Python Unicode and NSString...

2006-05-30 Thread whamoo
Hi all!i'm at war with unicode python and cocoa, and seem that i cannot win... =)i've wrote this function:    def makeNSString(self, oldString):        try:            oldString = NSString.stringWithUTF8String_(oldString)            return oldString        except Exception, e:            print Exce

[Pythonmac-SIG] AutoUpdate application?

2006-01-19 Thread whamoo
Hi all,I've written some pyobjc application bundled with py2app, and i'm wondering what is the best way for doing the self update of the application I will explain, after the application check that a new version is available and have downloaded it, how to delete the older one that is running an

[Pythonmac-SIG] It is normal in python2.3 shipped with apple?

2005-04-22 Thread whamoo
2.3/plat-mac/plistlib.py", line 270, in __init__ from xml.utils.iso8601 import parse ImportError: No module named utils.iso8601 Obviously i don't have this error on python2.4 thanks for help Whamoo ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] @selector(mymethod:) with pyobjc?

2005-01-20 Thread whamoo
odo:) In Python how to translate this? menuitem = NSMenuItem.alloc().initWithTitle_action_keyEquivalent_(str(a), "Here the code" , "") Thanks a lot =) Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debian Sarge - Amiga Os 3.9 - Milk__

[Pythonmac-SIG] [py2app help] Argv emulation and lost of focus

2005-01-12 Thread whamoo
Someone can tell me something? =) Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debian Sarge - Amiga Os 3.9 - Milk ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] applicationShouldHandleReopen_ (what i must put into it???)

2005-01-05 Thread whamoo
print "Change Action" #def applicationShouldTerminateAfterLastWindowClosed_(self, controller): #return True def applicationShouldHandleReopen_hasVisibleWindows_(self, controller, flag): print controller print flag print "caccamo" return Tr

Re: [Pythonmac-SIG] [May be OT] A question about creating a nib (cocoa specific)

2005-01-05 Thread whamoo
can implement a document based application starting by interface builder? Creating a new subclass of NSDocument, instantiate it, add outlet, action, creating code, but the problem don't solve =P Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debian Sarge -

[Pythonmac-SIG] [May be OT] A question about creating a nib (cocoa specific)

2005-01-05 Thread whamoo
t to create a normal application that on click on red button disappear and then clicking on the dock icon reappear? I'm a totally newbie to cocoa programming and I'm little confused Thanks a lot Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debi

Re: [Pythonmac-SIG] Some question about pyobjc and creating nib based application...

2005-01-05 Thread whamoo
is a great ide, but i doesn't use py2app to create bundle, so i haven't standalone application, back to use IB and the good old vim ;-) Very nice works on pyobjc1.2 thanks for all. Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debian Sarge - Amig

Re: [Pythonmac-SIG] Some question about pyobjc and creating nib based application...

2005-01-04 Thread whamoo
lot of time The same thing using only IB work fine =) So, where is my stupid error? I've read the documentation =) Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debian Sarge - Amiga Os 3.9 - Milk ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] Some question about pyobjc and creating nib based application...

2005-01-04 Thread whamoo
e base class, i can chose? There's somethings that I probably miss, someone can help? Thanks a lot. Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debian Sarge - Amiga Os 3.9 - Milk ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Question about Pil and icns...

2004-12-22 Thread whamoo
On 23/dic/04, at 01:29, Bob Ippolito wrote: On Dec 22, 2004, at 7:09 PM, whamoo wrote: I've read that new beta of the Pil now add support for icns file format, nice, but in the code of the plugin i read that there is only the read support, so, i cannot convert icns in other format and

[Pythonmac-SIG] Question about Pil and icns...

2004-12-22 Thread whamoo
tell me something about it? Someone have tried? Thanks a lot ps: Special thanks to Bob Ippolito for the great works Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debian Sarge - Amiga Os 3.9 - Milk ___ Pythonmac-SIG maillist - Pythonma

Re: [Pythonmac-SIG] Building 2.4

2004-12-06 Thread whamoo
.. There is a way to use old modules with python2.4 without reinstall all? (i have all modulen in (Library/Python/2.3) Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debian Sarge - Amiga Os 3.9 - Milk ___ Pythonmac-SIG maillist - [E