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