Re: Setting size for DirDialog
Scott Talbert <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 23 Jul 2020, Michael Eager wrote: > Running wxPython 4.1.0 gtk3 (phoenix) wxWidgets 3.1.4 > > When I create a DirDialog, the size seems to be whatever size the previous > dialog had, not what is set by the size= argument. > > dlg = wx.DirDialog(self, message='Choose a folder', > style=wx.DD_DEFAULT_STYLE, size=(wx.Size(400,400))) > > I see the same behavior with FileDialog. > > Is there any way I can control the size of the dialog window? There doesn't appear to be a way to do so, at least through wxPython. DirDialog under GTK3 is implemented using a GtkFileChooserDialog which doesn't seem to allow you to set the size. In fact, the size seems to come from the desktop environment, see, for example: https://bbs.archlinux.org/viewtopic.php?id=223506 Scott -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/alpine.DEB.2.21.2007231728230.13390%40bear.techie.net.