Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def CreateHelpMsgWidget(self, parent, action):
base_text = wx.StaticText(parent, label=action.help)
if self.HasNargs(action):
base_text.SetLabelText(base_text.GetLabelText() + self.CreateNargsMsg(action))
styling.MakeDarkGrey(base_text)
return base_text
def CreateNameLabelWidget(self, parent, action):
label = str(action.dest).title()
if len(action.option_strings) > 1:
label += ' (%s)' % action.option_strings[0]
text = wx.StaticText(parent, label=label)
styling.MakeBold(text)
return text
def createTitle(self, parent):
text = wx.StaticText(parent, label=self.data['display_name'].title())
styling.MakeBold(text)
return text
def CreateNameLabelWidget(self, parent, action):
label = str(action.dest).title()
if len(action.option_strings) > 1:
label += ' (%s)' % action.option_strings[0]
text = wx.StaticText(parent, label=label)
styling.MakeBold(text)
return text
def CreateHelpMsgWidget(self, parent, action):
base_text = wx.StaticText(parent, label=action.help)
if self.HasNargs(action):
base_text.SetLabelText(base_text.GetLabelText() + self.CreateNargsMsg(action))
styling.MakeDarkGrey(base_text)
return base_text
def CreateNameLabelWidget(self, parent, action):
label = str(action.dest).title()
if len(action.option_strings) > 1:
label += ' (%s)' % action.option_strings[0]
text = wx.StaticText(parent, label=label)
styling.MakeBold(text)
return text
def createHelpMsgWidget(self, parent):
label_text = (self.formatExtendedHelpMsg(self.data)
if self.data['nargs']
else self.data['help'])
base_text = wx.StaticText(parent, label=label_text or '')
styling.MakeDarkGrey(base_text)
return base_text