Changeset 225 for trunk/GSASII.py


Ignore:
Timestamp:
Jan 6, 2011 1:23:52 PM (12 years ago)
Author:
vondreele
Message:

fixes to window positioning around task bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r193 r225  
    203203        wx.Frame.__init__(self, name='GSASII', parent=parent,
    204204            size=wx.Size(300, 250),style=wx.DEFAULT_FRAME_STYLE, title='GSAS-II data tree')
    205         screenSize = wx.DisplaySize()
     205        clientSize = wx.ClientDisplayRect()
    206206        Size = self.GetSize()
    207         xPos = screenSize[0]-Size[0]
    208         self.SetPosition(wx.Point(xPos,0))
     207        xPos = clientSize[2]-Size[0]
     208        self.SetPosition(wx.Point(xPos,clientSize[1]))
    209209        self._init_utils()
    210210        self.SetMenuBar(self.GSASIIMenu)
     
    410410                imagefiles.sort()
    411411                for imagefile in imagefiles:
    412                     Comments,Data,Size,Image = G2IO.GetImageData(imagefile)
     412                    Comments,Data,Size,Image = G2IO.GetImageData(self,imagefile)
    413413                    if Comments:
    414414                        Id = self.PatternTree.AppendItem(parent=self.root,text='IMG '+ospath.basename(imagefile))
     
    450450                        self.PickId = Id
    451451                        self.Image = Id
    452                 self.PatternTree.SelectItem(Id)             #show last one
    453                 self.PatternTree.Expand(Id)
     452                self.PatternTree.SelectItem(G2gd.GetPatternTreeItemId(self,Id,'Image Controls'))             #show last one
    454453        finally:
    455454            dlg.Destroy()
Note: See TracChangeset for help on using the changeset viewer.