Rev 636 | Rev 638 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 636 | Rev 637 | ||
---|---|---|---|
Line 629... | Line 629... | ||
629 | 629 | ||
630 | def OnImport(self, event): # wxGlade: MainFrame.<event_handler> |
630 | def OnImport(self, event): # wxGlade: MainFrame.<event_handler> |
631 | dlg = wx.FileDialog( |
631 | dlg = wx.FileDialog( |
632 | self, message="Choose a file", |
632 | self, message="Choose a file", |
633 | defaultDir="%s/Data/" % os.getcwd(), |
633 | defaultDir="%s/Data/" % os.getcwd(), |
634 | defaultFile="*.txt", |
634 | defaultFile=".", |
635 | wildcard="*.txt", |
635 | wildcard="Text files (*.txt)|*.txt|All files (*.*)|*.*", |
636 | style=wx.OPEN | wx.CHANGE_DIR |
636 | style=wx.OPEN | wx.CHANGE_DIR |
637 | ) |
637 | ) |
638 | if dlg.ShowModal() == wx.ID_OK: |
638 | if dlg.ShowModal() == wx.ID_OK: |
639 | paths = dlg.GetPaths(); |
639 | paths = dlg.GetPaths(); |
Line 642... | Line 642... | ||
642 | 642 | ||
643 | def onExport(self, event): # wxGlade: MainFrame.<event_handler> |
643 | def onExport(self, event): # wxGlade: MainFrame.<event_handler> |
644 | dlg = wx.FileDialog( |
644 | dlg = wx.FileDialog( |
645 | self, message="Save file as ...", |
645 | self, message="Save file as ...", |
646 | defaultDir="%s/Data/" % os.getcwd(), |
646 | defaultDir="%s/Data/" % os.getcwd(), |
647 | defaultFile="*.txt", |
647 | defaultFile=".", |
648 | wildcard="", |
648 | wildcard="Text files (*.txt)|*.txt|All files (*.*)|*.*", |
649 | style=wx.SAVE |
649 | style=wx.SAVE |
650 | ) |
650 | ) |
651 | if dlg.ShowModal() == wx.ID_OK: |
651 | if dlg.ShowModal() == wx.ID_OK: |
652 | paths = dlg.GetPaths(); |
652 | paths = dlg.GetPaths(); |