Changeset 830 for SHX/trunk


Ignore:
Timestamp:
11/07/12 15:17:29 (8 years ago)
Author:
marcus
Message:
  • Screen class always has to be initialized
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/modules/screen.py

    r782 r830  
    164164 
    165165        # original SH calculates uses always 75 dpi 
    166         width = int(self.dimensions[2] / 2.54 * 75) 
    167         height = int(self.dimensions[3] / 2.54 * 75) 
    168         # using true DPI values 
    169 #        ppi = wx.ScreenDC().GetPPI() 
    170 #        width = int(self.dimensions[2] / 2.54 * ppi[0]) 
    171 #        height = int(self.dimensions[3] / 2.54 * ppi[1]) 
     166        # now using true DPI values 
     167        ppi = wx.ScreenDC().GetPPI() 
     168        width = int(self.dimensions[2] / 2.54 * ppi[0]) 
     169        height = int(self.dimensions[3] / 2.54 * ppi[1]) 
    172170 
    173         posx = int(self.dimensions[0] / 2.54 * 75) 
    174         posy = int(self.dimensions[1] / 2.54 * 75) 
    175 #        posx = int(self.dimensions[0] / 2.54 * ppi[0]) 
    176 #        posy = int(self.dimensions[1] / 2.54 * ppi[1]) 
     171        posx = int(self.dimensions[0] / 2.54 * ppi[0]) 
     172        posy = int(self.dimensions[1] / 2.54 * ppi[1]) 
    177173        scr = wx.GetClientDisplayRect() 
    178174        posy = scr[3] - height - posy 
     
    188184        log_message("debug.traceplotter", "start wx main loop") 
    189185        self.app.MainLoop() 
     186 
     187Screen() 
Note: See TracChangeset for help on using the changeset viewer.