Exemplo n.º 1
0
    def __init__(self,
                 bounds=[0, 0, 100, 20],
                 text="",
                 fontfile="",
                 font_size=12):
        PLabel.new.__init__(self,
                            bounds,
                            text,
                            fontfile,
                            font_size,
                            0,
                            vertical_align=0)

        self.caretx = 0
        self.cx = 0

        self.backColor = (1, 1, 1, 1)
        self.foreColor = default["text_color"]

        self.shadow = False
        self.margin = 4

        self.readOnly = False
        self.charSpacing = 1
        self.numbersOnly = False
        self.masked = False

        self.fw, self.fh = blf.dimensions(self.fid, "Ee|{^")

        self._tim = PTimer.new()
        self.blink = False

        self.on_text_changed = None
Exemplo n.º 2
0
	def __init__(self, text="", timeout=2.0, fontfile="", font_size=12):
		PLabel.new.__init__(self, [0, 0, 100, 20], text, fontfile, font_size, 0)
		self.timeOut = timeout
		
		self._timer = PTimer.new() 
		
		self.visible = False
Exemplo n.º 3
0
    def __init__(self, text="", timeout=2.0, fontfile="", font_size=12):
        PLabel.new.__init__(self, [0, 0, 100, 20], text, fontfile, font_size,
                            0)
        self.timeOut = timeout

        self._timer = PTimer.new()

        self.visible = False
Exemplo n.º 4
0
    def __init__(self, bounds=[0, 0, 100, 20], text="", fontfile="", font_size=12):
        PLabel.new.__init__(self, bounds, text, fontfile, font_size, 0, vertical_align=0)

        self.caretx = 0
        self.cx = 0
        
        self.backColor = (1,1,1,1)
        self.foreColor = default["text_color"]
        
        self.shadow = False
        self.margin = 4
        
        self.readOnly = False
        self.charSpacing = 1
        self.numbersOnly = False
        self.masked = False
        
        self.fw, self.fh = blf.dimensions(self.fid, "Ee|{^")
                
        self._tim = PTimer.new()
        self.blink = False
        
        self.on_text_changed = None