Re: [Pythonmac-SIG] [PyObjC] setting button name in NSOpenPanel

2009-04-02 Thread Nicholas Riley
On Thu, Apr 02, 2009 at 01:36:46PM +0200, Steph-info wrote: > Thanks Nicholas, it works for the "Open" button. > > I found the following cocoa reference for the "Cancel" button : > > """ > NSSavePanel *panel = [NSSavePanel savePanel]; > NSButton* cancelButton = > [[panel contentVi

Re: [Pythonmac-SIG] [PyObjC] setting button name in NSOpenPanel

2009-04-02 Thread Steph-info
Le 2 avr. 09 à 12:28, Nicholas Riley a écrit : On Thu, Apr 02, 2009 at 09:52:26AM +0200, Steph-info wrote: Hi, I have the following piece of code : """ @objc.IBAction def chooseRec_(self, sender): op = NSOpenPanel.openPanel() op.setTit

Re: [Pythonmac-SIG] [PyObjC] setting button name in NSOpenPanel

2009-04-02 Thread Nicholas Riley
On Thu, Apr 02, 2009 at 09:52:26AM +0200, Steph-info wrote: > Hi, > > I have the following piece of code : > > """ > @objc.IBAction > def chooseRec_(self, sender): > op = NSOpenPanel.openPanel() > op.setTitle_('Choisir un dossier') > op.

[Pythonmac-SIG] [PyObjC] setting button name in NSOpenPanel

2009-04-02 Thread Steph-info
Hi, I have the following piece of code : """ @objc.IBAction def chooseRec_(self, sender): op = NSOpenPanel.openPanel() op.setTitle_('Choisir un dossier') op.setCanChooseDirectories_(True) op.setCanChooseFiles