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