Python wx.TE_DONTWRAP Examples
The following are 7
code examples of wx.TE_DONTWRAP().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: GuiAbsBase.py From Crypter with GNU General Public License v3.0 | 6 votes |
def __init__( self, parent ): wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"Encrypted Files", pos = wx.DefaultPosition, size = wx.Size( 600,400 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL ) self.SetSizeHints( wx.DefaultSize, wx.DefaultSize ) BodySizer = wx.BoxSizer( wx.VERTICAL ) self.m_panel4 = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL ) TextCtrlSizer = wx.BoxSizer( wx.VERTICAL ) self.EncryptedFilesTextCtrl = wx.TextCtrl( self.m_panel4, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_DONTWRAP|wx.TE_MULTILINE|wx.TE_READONLY ) TextCtrlSizer.Add( self.EncryptedFilesTextCtrl, 1, wx.ALL|wx.EXPAND, 5 ) self.m_panel4.SetSizer( TextCtrlSizer ) self.m_panel4.Layout() TextCtrlSizer.Fit( self.m_panel4 ) BodySizer.Add( self.m_panel4, 1, wx.EXPAND |wx.ALL, 5 ) self.SetSizer( BodySizer ) self.Layout() self.Centre( wx.BOTH )
Example #2
Source File: spellcheckcfgdlg.py From trelby with GNU General Public License v2.0 | 5 votes |
def __init__(self, parent, scDict, isGlobal): wx.Dialog.__init__(self, parent, -1, "Spell checker dictionary", style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.scDict = scDict vsizer = wx.BoxSizer(wx.VERTICAL) if isGlobal: s = "Global words:" else: s = "Script-specific words:" vsizer.Add(wx.StaticText(self, -1, s)) self.itemsEntry = wx.TextCtrl(self, -1, style = wx.TE_MULTILINE | wx.TE_DONTWRAP, size = (300, 300)) vsizer.Add(self.itemsEntry, 1, wx.EXPAND) hsizer = wx.BoxSizer(wx.HORIZONTAL) hsizer.Add((1, 1), 1) cancelBtn = gutil.createStockButton(self, "Cancel") hsizer.Add(cancelBtn, 0, wx.LEFT, 10) okBtn = gutil.createStockButton(self, "OK") hsizer.Add(okBtn, 0, wx.LEFT, 10) vsizer.Add(hsizer, 0, wx.EXPAND | wx.TOP, 10) self.cfg2gui() util.finishWindow(self, vsizer) wx.EVT_TEXT(self, self.itemsEntry.GetId(), self.OnMisc) wx.EVT_BUTTON(self, cancelBtn.GetId(), self.OnCancel) wx.EVT_BUTTON(self, okBtn.GetId(), self.OnOK)
Example #3
Source File: test_sms.py From openplotter with GNU General Public License v2.0 | 5 votes |
def __init__(self): self.option=sys.argv[1] self.text_sms=sys.argv[2] self.text_sms=unicode(self.text_sms,'utf-8') self.phone=sys.argv[3] self.conf = Conf() self.home = self.conf.home self.currentpath = self.home+self.conf.get('GENERAL', 'op_folder')+'/openplotter' Language(self.conf) wx.Frame.__init__(self, None, title=_('Test SMS'), size=(500,260)) self.SetFont(wx.Font(10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL)) self.icon = wx.Icon(self.currentpath+'/openplotter.ico', wx.BITMAP_TYPE_ICO) self.SetIcon(self.icon) self.CreateStatusBar() self.text=wx.StaticText(self, label=_('Error'), pos=(10, 10)) self.output = wx.TextCtrl(self, style=wx.TE_MULTILINE|wx.TE_READONLY|wx.TE_DONTWRAP, size=(480,110), pos=(10,50)) self.button_close =wx.Button(self, label=_('Close'), pos=(300, 170)) self.Bind(wx.EVT_BUTTON, self.close, self.button_close) self.button_calculate =wx.Button(self, label=_('Start'), pos=(400, 170)) self.Bind(wx.EVT_BUTTON, self.calculate, self.button_calculate) if self.option=='i': self.text.SetLabel(_('Press start to check the settings and connect to the GSM device')) if self.option=='t': self.text.SetLabel(_('Press start to send the text "').decode('utf8')+self.text_sms+_('"\nto the number "').decode('utf8')+self.phone+'"') self.Centre()
Example #4
Source File: _explain.py From admin4 with Apache License 2.0 | 5 votes |
def __init__(self, parent): wx.TextCtrl.__init__(self, parent, style=wx.TE_MULTILINE|wx.TE_READONLY|wx.TE_DONTWRAP)
Example #5
Source File: autocompletiondlg.py From trelby with GNU General Public License v2.0 | 4 votes |
def __init__(self, parent, autoCompletion): wx.Dialog.__init__(self, parent, -1, "Auto-completion", style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.autoCompletion = autoCompletion vsizer = wx.BoxSizer(wx.VERTICAL) hsizer = wx.BoxSizer(wx.HORIZONTAL) hsizer.Add(wx.StaticText(self, -1, "Element:"), 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 10) self.elementsCombo = wx.ComboBox(self, -1, style = wx.CB_READONLY) for t in autoCompletion.types.itervalues(): self.elementsCombo.Append(t.ti.name, t.ti.lt) wx.EVT_COMBOBOX(self, self.elementsCombo.GetId(), self.OnElementCombo) hsizer.Add(self.elementsCombo, 0) vsizer.Add(hsizer, 0, wx.EXPAND) vsizer.Add(wx.StaticLine(self, -1), 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 10) self.enabledCb = wx.CheckBox(self, -1, "Auto-completion enabled") wx.EVT_CHECKBOX(self, self.enabledCb.GetId(), self.OnMisc) vsizer.Add(self.enabledCb, 0, wx.BOTTOM, 10) vsizer.Add(wx.StaticText(self, -1, "Default items:")) self.itemsEntry = wx.TextCtrl(self, -1, style = wx.TE_MULTILINE | wx.TE_DONTWRAP, size = (400, 200)) wx.EVT_TEXT(self, self.itemsEntry.GetId(), self.OnMisc) vsizer.Add(self.itemsEntry, 1, wx.EXPAND) hsizer = wx.BoxSizer(wx.HORIZONTAL) hsizer.Add((1, 1), 1) cancelBtn = gutil.createStockButton(self, "Cancel") hsizer.Add(cancelBtn, 0, wx.LEFT, 10) okBtn = gutil.createStockButton(self, "OK") hsizer.Add(okBtn, 0, wx.LEFT, 10) vsizer.Add(hsizer, 0, wx.EXPAND | wx.TOP, 10) util.finishWindow(self, vsizer) self.elementsCombo.SetSelection(0) self.OnElementCombo() wx.EVT_BUTTON(self, cancelBtn.GetId(), self.OnCancel) wx.EVT_BUTTON(self, okBtn.GetId(), self.OnOK)
Example #6
Source File: watermarkdlg.py From trelby with GNU General Public License v2.0 | 4 votes |
def __init__(self, parent, sp, prefix): wx.Dialog.__init__(self, parent, -1, "Watermarked PDFs generator", style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) self.frame = parent self.sp = sp vsizer = wx.BoxSizer(wx.VERTICAL) vsizer.Add(wx.StaticText(self, -1, "Directory to save in:"), 0) hsizer = wx.BoxSizer(wx.HORIZONTAL) self.dirEntry = wx.TextCtrl(self, -1) hsizer.Add(self.dirEntry, 1, wx.EXPAND) btn = wx.Button(self, -1, "Browse") wx.EVT_BUTTON(self, btn.GetId(), self.OnBrowse) hsizer.Add(btn, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 10) vsizer.Add(hsizer, 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 5) vsizer.Add(wx.StaticText(self, -1, "Filename prefix:"), 0) self.filenamePrefix = wx.TextCtrl(self, -1, prefix) vsizer.Add(self.filenamePrefix, 0, wx.EXPAND | wx.BOTTOM, 5) vsizer.Add(wx.StaticText(self, -1, "Watermark font size:"), 0) self.markSize = wx.SpinCtrl(self, -1, size=(60, -1)) self.markSize.SetRange(20, 80) self.markSize.SetValue(40) vsizer.Add(self.markSize, 0, wx.BOTTOM, 5) vsizer.Add(wx.StaticLine(self, -1), 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 5) vsizer.Add(wx.StaticText(self, -1, "Common mark:"), 0) self.commonMark = wx.TextCtrl(self, -1, "Confidential") vsizer.Add(self.commonMark, 0, wx.EXPAND| wx.BOTTOM, 5) vsizer.Add(wx.StaticText(self, -1, "Watermarks (one per line):")) self.itemsEntry = wx.TextCtrl( self, -1, style = wx.TE_MULTILINE | wx.TE_DONTWRAP, size = (300, 200)) vsizer.Add(self.itemsEntry, 1, wx.EXPAND) hsizer = wx.BoxSizer(wx.HORIZONTAL) closeBtn = wx.Button(self, -1, "Close") hsizer.Add(closeBtn, 0) hsizer.Add((1, 1), 1) generateBtn = wx.Button(self, -1, "Generate PDFs") hsizer.Add(generateBtn, 0) vsizer.Add(hsizer, 0, wx.EXPAND | wx.TOP, 10) util.finishWindow(self, vsizer) wx.EVT_BUTTON(self, closeBtn.GetId(), self.OnClose) wx.EVT_BUTTON(self, generateBtn.GetId(), self.OnGenerate) self.dirEntry.SetFocus()
Example #7
Source File: SDR_AIS_fine_cal.py From openplotter with GNU General Public License v2.0 | 4 votes |
def __init__(self): self.option=sys.argv[1] self.conf = Conf() self.home = self.conf.home self.currentpath = self.home+self.conf.get('GENERAL', 'op_folder')+'/openplotter' Language(self.conf) wx.Frame.__init__(self, None, title=_('Fine calibration'), size=(500,300)) self.SetFont(wx.Font(10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL)) self.icon = wx.Icon(self.currentpath+'/openplotter.ico', wx.BITMAP_TYPE_ICO) self.SetIcon(self.icon) self.CreateStatusBar() self.text=wx.StaticText(self, label=_('Error'), pos=(10, 10)) self.gain=self.conf.get('AIS-SDR', 'gain') self.ppm=self.conf.get('AIS-SDR', 'ppm') self.channel=self.conf.get('AIS-SDR', 'gsm_channel') wx.StaticText(self, label=_('gain: ').decode('utf8')+self.gain, pos=(10, 70)) wx.StaticText(self, label=_('ppm: ').decode('utf8')+self.ppm, pos=(100, 70)) self.output = wx.TextCtrl(self, style=wx.TE_MULTILINE|wx.TE_READONLY|wx.TE_DONTWRAP, size=(480,110), pos=(10,90)) self.button_close =wx.Button(self, label=_('Close'), pos=(300, 210)) self.Bind(wx.EVT_BUTTON, self.close, self.button_close) self.button_calculate =wx.Button(self, label=_('Calculate'), pos=(400, 210)) self.Bind(wx.EVT_BUTTON, self.calculate, self.button_calculate) if self.option=='c': self.text.SetLabel(_('Press Calculate and wait for the system to calculate the ppm value with\nthe selected channel. Put the obtained value in "Correction (ppm)" field\nand enable SDR-AISreception. Estimated time: 1 min.')) wx.StaticText(self, label=_('channel: ').decode('utf8')+self.channel, pos=(200, 70)) if self.option=='b': self.text.SetLabel(_('Press Calculate and wait for the system to check the band. Write down\nthe strongest channel (power). If you do not find any channel try another\nband. Estimated time: 5 min.')) self.Centre()