home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.6)
-
- import sys
- sys.path.append('C:\\Users\\Aaron\\workspace\\DigsbyTrunk\\digsby')
- from ctypes import windll
- windll.comctl32.InitCommonControls()
- import wx
- from tests.testapp import testapp
- from win32events import bindwin32
- from gui.uberwidgets.formattedinput2.FormattedExpandoTextCtrl import FormattedExpandoTextCtrl
- FormattedExpandoTextCtrl.BindWin32 = bindwin32
- from gui.uberwidgets.formattedinput2.fontutil import FontFromFacename
- from cgui import EVT_ETC_LAYOUT_NEEDED
-
- def _(text):
- return text
-
- __builtins__._ = _
- from gui.uberwidgets.formattedinput2.formattedinput import FormattedInput
-
- def NewInput():
- f = wx.Frame(None)
- f.Sizer = wx.BoxSizer(wx.VERTICAL)
- font = FontFromFacename('Arial')
- font.SetPointSize(10)
- textattr = wx.TextAttr(wx.BLACK, wx.WHITE, font)
- i = FormattedInput(f, multiFormat = True)
-
- def OnExpandEvent(event):
- height = None if i.FormattingBarIsShown() else 0 + i.tc.MinSize.height
- i.MinSize = wx.Size(-1, height)
- f.Fit()
-
- i.Bind(EVT_ETC_LAYOUT_NEEDED, OnExpandEvent)
- f.Sizer.Add(i, 0, wx.EXPAND)
- f.Show()
- f.Fit()
-
- if __name__ == '__main__':
- app = testapp(plugins = False)
- NewInput()
- app.MainLoop()
-
-