For example, this is from the wxPython doc:

-----------%<-----------
import wx
class MyFrame(wx.Frame):
    """ We simply derive a new class of Frame. """
    def __init__(self, parent, title):
        wx.Frame.__init__(self, parent, title=title, size=(200,100))
        self.control = wx.TextCtrl(self, style=wx.TE_MULTILINE)
        self.Show(True)

app = wx.App(False)
frame = MyFrame(None, 'Small editor')
app.MainLoop()
-----------%<-----------


I'd like to convert that text control into wxPerl but I can't figure
out how. This is what I tried to do:

use Wx qw(wxTE_MULTILINE);
...
Wx::TextCtrl->new($self, wxTE_MULTILINE);


But that didn't work and I don't understand the error message from wxPerl:

Usage: Wx::TextCtrl::newFull(CLASS, parent, id, value, pos =
wxDefaultPosition, size = wxDefaultSize, style = 0, validator =
(wxValidator*)&wxDefaultValidator, name = wxTextCtrlNameStr)

I can tell that it's trying to tell me how to do it correctly, but I
don't know what it' saying. What should I use for "value"? What is a
"style"? What is a "validator"?

Daniel.
-- 
Intolerant people should be shot.

Reply via email to