diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Control.GetSizeFromText.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Control.GetSizeFromText.1.py new file mode 100644 index 00000000..b2112ae7 --- /dev/null +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Control.GetSizeFromText.1.py @@ -0,0 +1,3 @@ + + # GetSizeFromText is a simpler way to do this: + size = self.GetSizeFromTextSize(self.GetTextExtent(text).GetWidth()) diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.FileDialog.4.py b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.FileDialog.4.py new file mode 100644 index 00000000..11891c6c --- /dev/null +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.FileDialog.4.py @@ -0,0 +1,2 @@ + + wx.SystemOptions.SetOption(wx.OSX_FILEDIALOG_ALWAYS_SHOW_TYPES, 1) diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Rect.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Rect.1.py new file mode 100644 index 00000000..87831589 --- /dev/null +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Rect.1.py @@ -0,0 +1,3 @@ + + x <= p.x < (rect.x + rect.width) + y <= p.y < (rect.y + rect.height)