Changeset 2547 for trunk/GSASII.py


Ignore:
Timestamp:
Nov 23, 2016 10:15:47 AM (6 years ago)
Author:
vondreele
Message:

remove str() from some text handling - failed on non ascii characters in file name & user entered titles.
Some code cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2544 r2547  
    2121import copy
    2222import random as ran
    23 import time
    2423import glob
    2524import imp
     
    7978import GSASIIpwd as G2pwd
    8079import GSASIIpwdGUI as G2pdG
    81 import GSASIIphsGUI as G2phsG
    82 import GSASIIimgGUI as G2imG
    8380import GSASIIspc as G2spc
    8481import GSASIIstrMain as G2stMn
     
    15321529                    dlg.Destroy()
    15331530            HistName = G2obj.MakeUniqueLabel(HistName,PWDRlist)
    1534             print('Read powder data '+str(HistName)+
    1535                 ' from file '+str(rd.readfilename) +
     1531            print('Read powder data '+HistName+
     1532                ' from file '+rd.readfilename +
    15361533                ' (format: '+ rd.formatName +
    1537                 '). Inst parameters from '+str(rd.instmsg))
     1534                '). Inst parameters from '+rd.instmsg)
    15381535            # data are read, now store them in the tree
    15391536            Id = self.PatternTree.AppendItem(parent=self.root,text=HistName)
     
    24612458            pltNum = self.G2plotNB.nb.GetSelection()
    24622459            if pltNum >= 0:                         #to avoid the startup with no plot!
    2463                 pltPage = self.G2plotNB.nb.GetPage(pltNum)
     2460                self.G2plotNB.nb.GetPage(pltNum)
    24642461            item = event.GetItem()
    24652462            G2gd.MovePatternTreeToGrid(self,item)
Note: See TracChangeset for help on using the changeset viewer.