Changeset 4ba4b69 in sasview


Ignore:
Timestamp:
Jan 10, 2017 6:45:44 AM (7 years ago)
Author:
wojciech
Children:
4cb58ce
Parents:
55b935e
Message:

Added focus om text box to make Windows working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/gpu_options.py

    r55b935e r4ba4b69  
    2626        self.text = wx.TextCtrl(self, -1, size=(500, 400), 
    2727                           style=wx.TE_MULTILINE|wx.TE_READONLY 
    28                                  |wx.SUNKEN_BORDER|wx.HSCROLL) 
     28                                 |wx.SUNKEN_BORDER) 
    2929        self.text.SetValue(msg) 
    3030        self.text.SetBackgroundColour(self.GetBackgroundColour()) 
    31  
     31        self.text.SetFocus() 
    3232        self.boxsizer.Add(self.text, proportion=1, flag=wx.EXPAND) 
    3333 
     
    6060        self.vbox.Fit(self) 
    6161 
    62         self.Centre() 
     62        self.SetAutoLayout(True) 
    6363        self.ShowModal() 
    6464        self.Destroy() 
Note: See TracChangeset for help on using the changeset viewer.