Hi everybody,
this is a fairly minor problem, but: I have a file dialog to save a file. When I choose a file that already exists, I always get the overwrite prompt, even though it is not specified in my style flags (and I do not want it to appear): dialog = wx.FileDialog(None, “Please choose a .plm file”, “”, “”, ALLOWED_FILETYPES, wx.SAVE)
(See also the attached sample program and screen shots.)
This only happens one of the computers I have tested this on. Everything works fine on the other one:
NO OVERWRITE PROMPT:
OS X 10.5.8
Python 2.7.6
wxPython 2.8.12.1
UNWANTED OVERWRITE PROMPT:
OS X 10.8.5
Python 2.7.6
wxPython 2.9.5.0
Does anybody know what is causing this? And is there any way to explicitly disable the overwrite prompt?
this is a fairly minor problem, but: I have a file dialog to save a file.
When I choose a file that already exists, I *always* get the overwrite
prompt, even though it is not specified in my style flags (and I do not
want it to appear):
* dialog = wx.FileDialog(None, "Please choose a .plm file", "", "",
ALLOWED_FILETYPES, wx.SAVE)*
(See also the attached sample program and screen shots.)
This only happens one of the computers I have tested this on. Everything
works fine on the other one:
NO OVERWRITE PROMPT:
- OS X 10.5.8
- Python 2.7.6
- wxPython 2.8.12.1
UNWANTED OVERWRITE PROMPT:
- OS X 10.8.5
- Python 2.7.6
- wxPython 2.9.5.0
Does anybody know what is causing this? And is there any way to explicitly
disable the overwrite prompt?
--
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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for your answer, Haris!
It looks like that is indeed the case: >>> import wx
import wx # directory /usr/local/lib/wxPython-2.9.5.0/lib/python2.7/site-packages/wx-2.9.5-osx_cocoa/wx
So this means it’s a bug and I’ll just have to live with it?
Ingrid
···
Am Dienstag, 8. April 2014 16:43:30 UTC-7 schrieb Haris Andrian:
Are you by any chance using wxPython-cocoa on the machine that always
displays the prompt dialog?
I briefly searched online and found this bug on wxWidgets
Yes, it seems to be a bug with OS X when using Cocoa. One of the devs
commented on the bug that he hasn't found a way to turn it off. I guess
what you could do is ping that bug and see if anyone had better luck
disabling it.
Also, since this is a wxWidgets bug you could try to ask on wx-users@
maybe some dev will reply or decide to debug/fix this
-Haris
···
On Tue, 8 Apr 2014, Ingrid wrote:
Thanks for your answer, Haris!
It looks like that is indeed the case:
*>>> import wximport wx # directory
/usr/local/lib/wxPython-2.9.5.0/lib/python2.7/site-packages/wx-2.9.5-osx_cocoa/wx*
So this means it's a bug and I'll just have to live with it?
Ingrid
Am Dienstag, 8. April 2014 16:43:30 UTC-7 schrieb Haris Andrian:
>
>
> Are you by any chance using wxPython-cocoa on the machine that always
> displays the prompt dialog?
>
> I briefly searched online and found this bug on wxWidgets
> wxTrac has been migrated to GitHub Issues - wxWidgets that says the flag is always On
> for
> OS X.
>
> -Haris
>
> On Tue, 8 Apr 2014, Ingrid wrote:
>
> > Hi everybody,
> >
> > this is a fairly minor problem, but: I have a file dialog to save a
> file.
> > When I choose a file that already exists, I *always* get the overwrite
> > prompt, even though it is not specified in my style flags (and I do not
> > want it to appear):
> >
> >
> > * dialog = wx.FileDialog(None, "Please choose a .plm file", "", "",
> > ALLOWED_FILETYPES, wx.SAVE)*
> > (See also the attached sample program and screen shots.)
> >
> > This only happens one of the computers I have tested this on.
> Everything
> > works fine on the other one:
> >
> > NO OVERWRITE PROMPT:
> >
> > - OS X 10.5.8
> > - Python 2.7.6
> > - wxPython 2.8.12.1
> >
> > UNWANTED OVERWRITE PROMPT:
> >
> > - OS X 10.8.5
> > - Python 2.7.6
> > - wxPython 2.9.5.0
> >
> > Does anybody know what is causing this? And is there any way to
> explicitly
> > disable the overwrite prompt?
> >
> > Thanks,
> >
> > Ingrid
> >
> > <
> https://lh5.googleusercontent.com/-BIn3NrgGI2A/U0SGVEHoOBI/AAAAAAAAAC4/tRJToZ50wlA/s1600/unwanted+overwrite+prompt.png>
>
> >
> > <
> https://lh6.googleusercontent.com/-4pWO9_cq47Y/U0SGZA3tyGI/AAAAAAAAADA/9tah9xbyrWE/s1600/no+unwanted+overwrite+prompt+on+OS+X+10.5.png>
>
> >
> >
> > --
> > 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 wxpython-user...@googlegroups.com <javascript:>.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
--
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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.