wx.EmptyString: when to use and why

Looking at main menu code generated by wxFormBuilder I see that each menu
item includes a wx.EmptyString modifier. I don't recall seeing this the last
time I used wxPython so I went looking for information about it ...
unsuccessfully.

   My web searches found examples but no explanation of why it's used.
Grepping the 4.0.1 docs found no reference to it in the API .html pages.

   It seems obvious that wx.EmptyString means the string is initially empty,
but why is this used with menu items, or other places?

   A pointer to where it's explained would be really helpful.

TIA,

Rich

Rich Shepard wrote:

Looking at main menu code generated by wxFormBuilder I see that each
menu
item includes a wx.EmptyString modifier. I don't recall seeing this
the last
time I used wxPython so I went looking for information about it ...
unsuccessfully.
...
It seems obvious that wx.EmptyString means the string is initially
empty,
but why is this used with menu items, or other places?

It's not a modifier. It's a constant. wx.EmptyString is nothing more
than a long-winded way of typing "". It is no more complicated than
that. It serves exactly the same purpose as using wx.DefaultSize and
wx.DefaultPosition instead of the easier to type (-1,-1) --
self-documentation.

I presume wxFormBuilder is inserting this in the parameter slot for the
help string, which you have probably not specified.

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

It's not a modifier. It's a constant.

Tim,

   I stand corrected.

wx.EmptyString is nothing more than a long-winded way of typing "". It is
no more complicated than that. It serves exactly the same purpose as using
wx.DefaultSize and wx.DefaultPosition instead of the easier to type
(-1,-1) -- self-documentation.

   This makes sense.

I presume wxFormBuilder is inserting this in the parameter slot for the
help string, which you have probably not specified.

   Could well be the case.

Thanks very much for the lesson,

Rich

···

On Thu, 12 Apr 2018, Tim Roberts wrote: