Robot Framework Integrated Development Environment (RIDE)
label.py
Go to the documentation of this file.
1 # Copyright 2008-2015 Nokia Networks
2 # Copyright 2016- Robot Framework Foundation
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 
16 import wx
17 
18 from .font import Font
19 
20 
21 class Label(wx.StaticText):
22 
23  def __init__(self, parent, id=-1, label='', **args):
24  wx.StaticText.__init__(self, parent=parent, id=id, label=label.replace('&', '&&'), **args)
25 
26  def SetLabel(self, label):
27  wx.StaticText.SetLabel(self, label.replace('&', '&&'))
28 
29 
31 
32  def __init__(self, parent, label):
33  Label.__init__(self, parent, label=label)
34  self.SetFont(wx.Font(wx.FontInfo(12).Family(wx.FONTFAMILY_SWISS).Bold()))
35 
36 
38 
39  def __init__(self, parent, label):
40  Label.__init__(self, parent, label=label)
41  self.SetFont(Font().help)
def __init__(self, parent, label)
Definition: label.py:32
def __init__(self, parent, label)
Definition: label.py:39
def __init__(self, parent, id=-1, label='', **args)
Definition: label.py:23
def SetLabel(self, label)
Definition: label.py:26