mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Add some new code snippets
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
|
||||
# GetSizeFromText is a simpler way to do this:
|
||||
size = self.GetSizeFromTextSize(self.GetTextExtent(text).GetWidth())
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
wx.SystemOptions.SetOption(wx.OSX_FILEDIALOG_ALWAYS_SHOW_TYPES, 1)
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
x <= p.x < (rect.x + rect.width)
|
||||
y <= p.y < (rect.y + rect.height)
|
||||
Reference in New Issue
Block a user