Phoenix - wx._gdi.Font

Hi Robin,

Dabo uses above e.g.:

isinstance(val, (wx.Font, wx._gdi.Font)):

Is it fine to check just for wx.Font or ...?

BTW, isn't there a doc which explains how things got reorganized in Phoenix, e.g. gizmos -> adv and similar things? If not any chance of you doing one?

Werner

...

BTW, isn't there a doc which explains how things got reorganized in Phoenix, e.g. gizmos -> adv and similar things? If not any chance of you doing one?

Found it "The �wx� namespace and submodules reorganized" in the MigrationGuide, might be nice if this is searchable, e.g. include in the text the name of the 5 modules.

Werner

···

On 14/10/2013 10:07, Werner wrote:

Werner wrote:

Hi Robin,

Dabo uses above e.g.:

isinstance(val, (wx.Font, wx._gdi.Font)):

Is it fine to check just for wx.Font or ...?

BTW, isn't there a doc which explains how things got reorganized in
Phoenix, e.g. gizmos -> adv and similar things? If not any chance of you
doing one?

In Classic wx.Font and wx._gdi.Font are exactly the same thing, so the code above is testing if it's an instance of wx.Font or an instance of wx.Font. :slight_smile: So IOW, the original code was wrong.

···

--
Robin Dunn
Software Craftsman