Scrolling Dialog?

Hello,
I'm working on a project where I need to have a dialog pop up and show
the users the license of the program (GNU), which is pretty long. I've
looked up some ways to make a dialog with a scrolling message, but
they all seem to be too old.
ex-

dlg = wx.ScrolledMessageDialog(parent, message, caption)

(from http://wiki.wxpython.org/MessageBoxes)

Any ideas on how I can (in a simple way, hopefully) do this?

Hi Trey,

The time it took me to implement one was less than the time to research one already implemented.

Here is code:

class Disclaimer(wx.Dialog):
def init(self, parent):
wx.Dialog._init
(self, parent, title=(“Disclaimer”))

    text = wx.TextCtrl(self, -1, disclaimer_text, size=(320,240), style=wx.TE_MULTILINE | wx.TE_READONLY)
   
    sizer = wx.BoxSizer(wx.VERTICAL

)

    btnsizer = wx.BoxSizer()

    btn = wx.Button(self, wx.ID_OK)
    btnsizer.Add(btn, 0, wx.ALL, 5)
    btnsizer.Add((5,-1), 0, wx.ALL, 5)

    btn = wx.Button(self, wx.ID_CANCEL)
    btnsizer.Add(btn, 0, wx.ALL, 5)

    sizer.Add(text, 0, wx.EXPAND|wx.ALL, 5)   
    sizer.Add(btnsizer, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5)   
    self.SetSizerAndFit

(sizer)

;))

Peter.

···

On 10/12/07, Trey K trey.wxpython@gmail.com wrote:

Hello,
I’m working on a project where I need to have a dialog pop up and show
the users the license of the program (GNU), which is pretty long. I’ve
looked up some ways to make a dialog with a scrolling message, but

they all seem to be too old.
ex-

dlg = wx.ScrolledMessageDialog(parent, message, caption)

(from http://wiki.wxpython.org/MessageBoxes)

Any ideas on how I can (in a simple way, hopefully) do this?


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


There is NO FATE, we are the creators.

Trey K escribió:

Hello,
I'm working on a project where I need to have a dialog pop up and show
the users the license of the program (GNU), which is pretty long. I've
looked up some ways to make a dialog with a scrolling message, but
they all seem to be too old.
ex-

dlg = wx.ScrolledMessageDialog(parent, message, caption)

(from MessageBoxes - wxPyWiki)

Any ideas on how I can (in a simple way, hopefully) do this?
  

wx.AboutDialogInfo()

···

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org