def set_grid_config(self): """Grid configuration""" self.grid_shape = "(1000, 100, 3)" self.max_unredo = "5000" # Colors self.grid_color = repr(get_color(wx.SYS_COLOUR_3DSHADOW)) self.selection_color = repr(get_color(wx.SYS_COLOUR_HIGHLIGHT)) self.background_color = repr(get_color(wx.SYS_COLOUR_WINDOW)) self.text_color = repr(get_color(wx.SYS_COLOUR_WINDOWTEXT)) # Fonts self.font = repr(get_font_string(wx.SYS_DEFAULT_GUI_FONT)) # Default cell font size self.font_default_sizes = "[6, 8, 10, 12, 14, 16, 18, 20, 24, 28, 32]" # Zoom self.minimum_zoom = "0.25" self.maximum_zoom = "8.0" # Increase and decrease factor on zoom in and zoom out self.zoom_factor = "0.05"
def __init__(self): # User defined paths # ------------------ standardpaths = wx.StandardPaths.Get() self.work_path = standardpaths.GetDocumentsDir() # Window configuration # -------------------- self.window_position = "(10, 10)" self.window_size = repr((wx.GetDisplaySize()[0] * 9 / 10, wx.GetDisplaySize()[1] * 9 / 10)) self.window_layout = "''" self.icon_theme = "'Tango'" self.help_window_position = repr((wx.GetDisplaySize()[0] * 7 / 10, 15)) self.help_window_size = repr((wx.GetDisplaySize()[0] * 3 / 10, wx.GetDisplaySize()[1] * 7 / 10)) # Grid configuration # ------------------ ##self.grid_shape = "(1000, 100, 3)" self.grid_rows = "1000" self.grid_columns = "100" self.grid_tables = "3" self.max_unredo = "5000" # Maximum result length in a cell in characters self.max_result_length = "1000" # Colors self.grid_color = repr(get_color(wx.SYS_COLOUR_3DSHADOW)) self.selection_color = repr(get_color(wx.SYS_COLOUR_HIGHLIGHT)) self.background_color = repr(get_color(wx.SYS_COLOUR_WINDOW)) self.text_color = repr(get_color(wx.SYS_COLOUR_WINDOWTEXT)) # Fonts self.font = repr(get_font_string(wx.SYS_DEFAULT_GUI_FONT)) # Default cell font size self.font_default_sizes = "[6, 8, 10, 12, 14, 16, 18, 20, 24, 28, 32]" # Zoom self.minimum_zoom = "0.25" self.maximum_zoom = "8.0" # Increase and decrease factor on zoom in and zoom out self.zoom_factor = "0.05" # GPG parameters # -------------- self.gpg_key_uid = repr('') self.gpg_key_passphrase = repr('') self.gpg_key_passphrase_isstored = repr(True) # CSV parameters for import and export # ------------------------------------ # Number of bytes for the sniffer (should be larger than 1st+2nd line) self.sniff_size = "65536" # Maximum number of characters in wx.TextCtrl self.max_textctrl_length = "65534"