def open_workspace(self,event): opendialog = OpenFile(self,filetypes=['rdata'],include_wildcard=True) uri,extension = opendialog.get_filename() path = get_path_from_url(uri) if not os.path.isfile(path): return rsession.r['load'](path) self.sync_with_r()
def import_data(self,event): opendialog = OpenFile(self,filetypes=['csv','xls'],include_wildcard=True) uri,extension = opendialog.get_filename() self.import_datafile(uri)