Changeset 1201


Ignore:
Timestamp:
02/08/23 00:06:34 (23 months ago)
Author:
sz
Message:

passing file patterns as lists of strings is more portable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/gui/widgets/mainPage.py

    r1198 r1201  
    498498        if self.frams:
    499499            self.canStep = False
    500             path = FileOpenDialogBox("Open File", "Path", parent=self, initialvalue=self.lib_adr, filetypes=[("Framsticks files", "*.expt;*.gen;*.sim"), ("Experiment state", "*.expt"), ("Genotypes", "*.gen"), ("Simulator parameters", "*.sim"), ("All files", "*.*")])
     500            path = FileOpenDialogBox("Open File", "Path", parent=self, initialvalue=self.lib_adr, filetypes=[("Framsticks files", ['*.expt','*.gen','*.sim']), ("Experiment state", "*.expt"), ("Genotypes", "*.gen"), ("Simulator parameters", "*.sim"), ("All files", "*.*")])
    501501            path = path.result
    502502            if path:
     
    510510        if self.frams:
    511511            self.canStep = False
    512             path = FileOpenDialogBox("Open File", "Path", parent=self, init_val=self.lib_adr, filetypes=[("Framsticks files", "*.expt;*.gen;*.sim"), ("Experiment state", "*.expt"), ("Genotypes", "*.gen"), ("Simulator parameters", "*.sim"), ("All files", "*.*")])
     512            path = FileOpenDialogBox("Open File", "Path", parent=self, init_val=self.lib_adr, filetypes=[("Framsticks files", ['*.expt','*.gen','*.sim']), ("Experiment state", "*.expt"), ("Genotypes", "*.gen"), ("Simulator parameters", "*.sim"), ("All files", "*.*")])
    513513            path = path.result
    514514            if path:
Note: See TracChangeset for help on using the changeset viewer.