Add some new code snippets

This commit is contained in:
Robin Dunn
2019-12-11 13:58:47 -08:00
parent c106daa179
commit 1cad84aa8e
3 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# GetSizeFromText is a simpler way to do this:
size = self.GetSizeFromTextSize(self.GetTextExtent(text).GetWidth())

View File

@@ -0,0 +1,2 @@
wx.SystemOptions.SetOption(wx.OSX_FILEDIALOG_ALWAYS_SHOW_TYPES, 1)

View File

@@ -0,0 +1,3 @@
x <= p.x < (rect.x + rect.width)
y <= p.y < (rect.y + rect.height)