wx.DirDialog()

21 views
Skip to first unread message

PaulANormanNZ

unread,
Oct 10, 2011, 2:32:04 AM10/10/11
to glues...@googlegroups.com
HI,

I am having a bit of trouble using wx.DirDialog()

Any thoughts appreciated please.

Paul

       var wx = require("wx");

// I've tried var getDir =  new wx.DirDialog(  blah blah

// and also null instead of wx.theApp.topWindow,  

var getDir =   wx.DirDialog(wx.theApp.topWindow, 
                                                        "Choose Image Directory", "",
                                                        wx.DirDialog.DEFAULT_STYLE, wx.DefaultPosition); // 
 
                             getDir.showModal();
wx.messageBox(getDir.path) ;


Franky Braem

unread,
Oct 12, 2011, 1:43:26 PM10/12/11
to glues...@googlegroups.com
Changed in 0.2.0 repository: it wasn't allowed to pass a null window to wx.DirDialog

Note that wx.theApp.toWindow is null in your example because there's no window defined.

Franky

Op 10/10/2011 8:32, PaulANormanNZ schreef:
--
You received this message because you are subscribed to the Google Groups "GLUEscript" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gluescript/-/v0xZLl4mNbkJ.
To post to this group, send email to glues...@googlegroups.com.
To unsubscribe from this group, send email to gluescript+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gluescript?hl=en.

Reply all
Reply to author
Forward
0 new messages