def __init__(self, parent, extra_data_func, extra_data_wildcard):
    dialog_base.FieldsPanelBase.__init__(self, parent)
    self.extra_data_func = extra_data_func
    self.extra_field_data = None
    bitmaps = os.path.join(os.path.dirname(__file__), 'bitmaps')
    self.m_btnUp.SetBitmap(wx.Bitmap(os.path.join(bitmaps, 'btn-arrow-up.png'), wx.BITMAP_TYPE_PNG))
    self.m_btnDown.SetBitmap(wx.Bitmap(os.path.join(bitmaps, 'btn-arrow-down.png'), wx.BITMAP_TYPE_PNG))
    self.set_file_picker_wildcard(extra_data_wildcard)
    self._setFieldsList([])
    for i in range(2):
        box = self.GetTextExtent(self.fieldsGrid.GetColLabelValue(i))
        if hasattr(box, 'x'):
            width = box.x
        else:
            width = box[0]
        width = int(((width * 1.1) + 5))
        self.fieldsGrid.SetColMinimalWidth(i, width)
        self.fieldsGrid.SetColSize(i, width)
def __init__(self, parent, extra_data_func, extra_data_wildcard):
    dialog_base.FieldsPanelBase.__init__(self, parent)
    self.extra_data_func = extra_data_func
    self.extra_field_data = None
    bitmaps = os.path.join(os.path.dirname(__file__), 'bitmaps')
    self.m_btnUp.SetBitmap(wx.Bitmap(os.path.join(bitmaps, 'btn-arrow-up.png'), wx.BITMAP_TYPE_PNG))
    self.m_btnDown.SetBitmap(wx.Bitmap(os.path.join(bitmaps, 'btn-arrow-down.png'), wx.BITMAP_TYPE_PNG))
    self.set_file_picker_wildcard(extra_data_wildcard)
    self._setFieldsList([])
    for i in range(2):
        box = self.GetTextExtent(self.fieldsGrid.GetColLabelValue(i))
        if hasattr(box, 'x'):
            width = box.x
        else:
            width = box[0]
        width = int(((width * 1.1) + 5))
        self.fieldsGrid.SetColMinimalWidth(i, width)
        self.fieldsGrid.SetColSize(i, width)