DirDialog has two different forms

I am using windows 7 and wxPython 3.0.0.

If I create a “DirDialog” with a valid “defaultPath” then I get a pop-up with one look and feel.

If I create a “DirDialog” with an invalid “defaultPath” then I get a pop-up with a different look and feel.

Not sure what would be different.
I tested on XP and Linux didn’t see any difference.
Could you post a couple screenies of what seems different and the DirDialog lines used with params.
Alt+PrintScreen should copy just the foreground window(DirDialog in this case) into the clipboard so you can paste it in Paint/Photoshop/GIMP/etc and save as png/etc.
Might be something specific to 7 or windows versions.
Is there anything else strange besides the look?

I use Snaggit for screen captures … works great! I am attaching a simple script and the resulting dialogs:

  • good.jpg when I give a valid path

  • bad.jpg when I give a garbage path

The “garbage” dialog appears in the center of the screen. The “valid” dialog appears over my GUI as expected.

Thanks for taking time to look at this!

import wx

def launchPicker(event):

text = event.GetEventObject().default

picker = wx.DirDialog(text.Parent,“Pick Directory”,

text.GetValue())

picker.ShowModal()

app = wx.App()

frame = wx.Frame(None, wx.ID_ANY, “Pick Directory”)

box = wx.BoxSizer(wx.HORIZONTAL)

pick = wx.Button(frame,wx.ID_ANY,“Pick”)

pick.default = wx.TextCtrl(frame,size=(200,-1))

box.Add(pick.default,flag=wx.EXPAND)

box.Add(pick)

frame.SetSizerAndFit(box)

frame.Bind(wx.EVT_BUTTON,launchPicker,pick)

frame.Show(True)

app.MainLoop()

···

On Thursday, May 15, 2014 3:00:59 PM UTC-5, Metallicow wrote:

Not sure what would be different.
I tested on XP and Linux didn’t see any difference.
Could you post a couple screenies of what seems different and the DirDialog lines used with params.
Alt+PrintScreen should copy just the foreground window(DirDialog in this case) into the clipboard so you can paste it in Paint/Photoshop/GIMP/etc and save as png/etc.
Might be something specific to 7 or windows versions.
Is there anything else strange besides the look?

Well, it appears that it must be a MSW 7+ thing(maybe vista also?). I never really noticed the difference as usually I send the default path as the cwd or at least check it beforehand.
Should probably dot this down and ask Robin if there is anything special that might change the layout…
otherwise it is a small but useful bit of info for the docs.
I assume they both work fine for you, and you are just concerned with the cosmetic layout.
Your bad.jpg is what is the default layout normally would look like on XP/etc basically plus/minus the what’s this context help button.
Your good.jpg looks like maybe seven(and/or later) adopted a secondary dialog look depending on if the path is valid or not.
Probably not changeable, tho you might try fiddling with the dialog styles to see if you can force one or the other.

Other; I recall trying snaggit when I tryed out their Camtasia Studio, which is nice for short video captures/edits,
but snaggit really doesn’t have what I need as “screenshot” app. Actually most all don’t, I usually have to write my own 1-button wonder with PIL most times, but Greenshot is decent for some of its quick 1 button capture options.
Plus I see the snaggit more useful for its video capture capabilities than the screenshot stuff(like making animated gifs/pngs)
and also it doesn’t advertise linux support. Besides that it seems to be a nice product tho, but for general use, their prices are a bit high, unless using it professionally.

Thank you so much for your time and info! You do great work.

The cosmetic difference is definitely not causing me any problems. I just found it … interesting!

···

On Mon, May 19, 2014 at 11:21 PM, Metallicow metaliobovinus@gmail.com wrote:

Well, it appears that it must be a MSW 7+ thing(maybe vista also?). I never really noticed the difference as usually I send the default path as the cwd or at least check it beforehand.
Should probably dot this down and ask Robin if there is anything special that might change the layout…

otherwise it is a small but useful bit of info for the docs.
I assume they both work fine for you, and you are just concerned with the cosmetic layout.
Your bad.jpg is what is the default layout normally would look like on XP/etc basically plus/minus the what’s this context help button.

Your good.jpg looks like maybe seven(and/or later) adopted a secondary dialog look depending on if the path is valid or not.
Probably not changeable, tho you might try fiddling with the dialog styles to see if you can force one or the other.

Other; I recall trying snaggit when I tryed out their Camtasia Studio, which is nice for short video captures/edits,
but snaggit really doesn’t have what I need as “screenshot” app. Actually most all don’t, I usually have to write my own 1-button wonder with PIL most times, but Greenshot is decent for some of its quick 1 button capture options.

Plus I see the snaggit more useful for its video capture capabilities than the screenshot stuff(like making animated gifs/pngs)
and also it doesn’t advertise linux support. Besides that it seems to be a nice product tho, but for general use, their prices are a bit high, unless using it professionally.

You received this message because you are subscribed to a topic in the Google Groups “wxPython-users” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/R8Rs1o3NxDs/unsubscribe.

To unsubscribe from this group and all its topics, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.