Ticket #1626: MultilineBugs.py

File MultilineBugs.py, 606 bytes (added by siona, 18 years ago)

wxPython example of multiline TextCtrl in dialog

Line 
1#!/usr/bin/env python
2
3import wx
4
5class MyDialog(wx.Dialog):
6    def __init__(self,parent):
7        wx.Dialog.__init__(self, parent, -1,"Demonstration of multiline wxTextEdit bug")
8       
9        entry = wx.TextCtrl(self,-1,"Enter text here", style=wx.TE_MULTILINE)
10           
11        mainSizer = wx.GridSizer(1, 1)
12        mainSizer.Add(entry, 0, wx.ALL, 12)
13       
14        self.SetSizerAndFit(mainSizer)
15
16
17if __name__ == "__main__":
18        app = wx.PySimpleApp()
19        frame = wx.Frame(None, -1, "Demonstration of multiline wxTextEdit bug")
20        dlg = MyDialog(frame)
21        dlg.ShowModal()
22
23