X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1462dfa3496ba7288691376c1de4c890d90787c..4f02408ec96dbb43a505aa2b4781ac943a32772c:/utils/wxPython/demo/CustomDragAndDrop.py diff --git a/utils/wxPython/demo/CustomDragAndDrop.py b/utils/wxPython/demo/CustomDragAndDrop.py index 2756121871..31391b8edb 100644 --- a/utils/wxPython/demo/CustomDragAndDrop.py +++ b/utils/wxPython/demo/CustomDragAndDrop.py @@ -197,9 +197,12 @@ class TestPanel(wxPanel): self.SetAutoLayout(true) sizer = wxBoxSizer(wxVERTICAL) + msg = "Custom Drag-And-Drop" text = wxStaticText(self, -1, "", style=wxALIGN_CENTRE) text.SetFont(wxFont(24, wxSWISS, wxNORMAL, wxBOLD, false)) - text.SetLabel("Custom Drag-And-Drop") + text.SetLabel(msg) + w,h = text.GetTextExtent(msg) + text.SetSize(wxSize(w,h+1)) text.SetForegroundColour(wxBLUE) sizer.Add(text, 0, wxEXPAND|wxALL, 5) sizer.Add(wxStaticLine(self, -1), 0, wxEXPAND)