|
|
@ -196,6 +196,23 @@ class DirDialog(wx.DirDialog): |
|
|
|
def __init__(self, parent, *args, **kwargs): |
|
|
|
wx.DirDialog.__init__(self, parent, 'Select Directory', style=wx.DD_DEFAULT_STYLE) |
|
|
|
|
|
|
|
class PasswordInputPayload(WidgetPack): |
|
|
|
def __init__(self, no_quoting=False): |
|
|
|
self.widget = None |
|
|
|
self.option_string = None |
|
|
|
self.no_quoting = no_quoting |
|
|
|
|
|
|
|
def build(self, parent, data, choices=None): |
|
|
|
self.widget = wx.TextCtrl(parent, style=wx.TE_PASSWORD) |
|
|
|
dt = FileDrop(self.widget) |
|
|
|
self.widget.SetDropTarget(dt) |
|
|
|
self.widget.SetMinSize((0, -1)) |
|
|
|
self.widget.SetDoubleBuffered(True) |
|
|
|
self.widget.AppendText('') |
|
|
|
return self.widget |
|
|
|
|
|
|
|
def get_value(self): |
|
|
|
return self.widget.GetValue() |
|
|
|
|
|
|
|
def safe_default(data, default): |
|
|
|
return '' |
|
|
|