Esempio n. 1
0
    def setUp(self):
        # Setup config
        ed_glob.CONFIG['STYLES_DIR'] = common.GetStylesDir()

        # Create control(s)
        self.frame = common.TestFrame(None)
        self.stc = ed_basestc.EditraBaseStc(self.frame)
Esempio n. 2
0
    def __init__(self, parent):
        super(PreviewPanel, self).__init__(parent)

        # Attributes
        self.LOG = wx.GetApp().GetLog()
        self.preview = ed_basestc.EditraBaseStc(self, size=(-1, 200),
                                                style=wx.SUNKEN_BORDER)

        # Setup
        self.preview.SetEdgeColumn(80)
        self.preview.SetEdgeMode(wx.stc.STC_EDGE_LINE)
        self.preview.SetCaretLineVisible(True)
        self.__DoLayout()

        # Event Handlers
        self.Bind(wx.EVT_CHOICE, self.OnChoice)
Esempio n. 3
0
 def testGetEOLChar(self):
     """Test that correct eol character is returned"""
     fresh_stc = ed_basestc.EditraBaseStc(self.frame)
     eolchr = fresh_stc.GetEOLChar()
     fresh_stc.Destroy()
     self.assertEquals(eolchr, os.linesep)