Changeset 3369 for trunk/testDeriv.py


Ignore:
Timestamp:
May 3, 2018 9:25:40 AM (3 years ago)
Author:
vondreele
Message:

make import Bruker raw python 3 compatible
revise testDeriv & G2strMain to use file names proj.testDeriv instead of testDeriv.dat. That way one ca look at several different derivative examples at once.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testDeriv.py

    r3340 r3369  
    5959        self.testDerivMenu = wx.MenuBar()
    6060        self.File = wx.Menu(title='')
    61         self.File.Append(wxID_FILEOPEN,'Open testDeriv.dat file','Open testDeriv.dat')
     61        self.File.Append(wxID_FILEOPEN,'Open testDeriv file','Open testDeriv')
    6262        self.File.Append(wxID_MAKEPLOTS,'Make plots','Make derivative plots')
    6363        self.File.Append(wxID_FILEEXIT,'Exit','Exit from testDeriv')
     
    8787
    8888    def OnTestRead(self,event):
    89         dlg = wx.FileDialog(self, 'Open testDeriv.dat file',defaultFile='testDeriv.dat',
    90             wildcard='testDeriv.dat')
     89        dlg = wx.FileDialog(self, 'Open *.testDeriv file',defaultFile='*.testDeriv',
     90            wildcard='*.testDeriv')
    9191        if self.dirname:
    9292            dlg.SetDirectory(self.dirname)
Note: See TracChangeset for help on using the changeset viewer.