Changeset 506bca3 in sasview


Ignore:
Timestamp:
Jan 13, 2017 5:22:08 AM (8 years ago)
Author:
wojciech
Parents:
1b061a31
Message:

Removing panel wx element that prevented mouse scrolling

File:
1 edited

Legend:

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

    r1b061a31 r506bca3  
    2525        wx.Dialog.__init__(self, parent, title=title) 
    2626 
    27         self.panel = wx.Panel(self, -1) 
    28         self.static_box = wx.StaticBox(self.panel, -1, "OpenCL test completed!") 
     27        self.static_box = wx.StaticBox(self, -1, "OpenCL test completed!") 
    2928        self.boxsizer = wx.BoxSizer(orient=wx.VERTICAL) 
    3029 
    31         self.text = wx.TextCtrl(self, -1, size=(500, 400), 
     30        self.text = wx.TextCtrl(self, -1, size=(500, 300), 
    3231                                style=wx.TE_MULTILINE|wx.TE_READONLY) 
    3332        self.text.SetValue(msg) 
    3433        self.text.SetBackgroundColour(self.GetBackgroundColour()) 
    3534        self.text.SetFocus() 
     35        self.text.SetInsertionPoint(self.text.GetLastPosition()) 
    3636        self.boxsizer.Add(self.text, proportion=1, flag=wx.EXPAND) 
    3737 
     
    3939        self.fit_hsizer.Add(self.boxsizer, 0, wx.ALL, 5) 
    4040 
    41         self.panel.SetSizer(self.fit_hsizer) 
    42  
    4341        self.vbox = wx.BoxSizer(wx.VERTICAL) 
    44         self.vbox.Add(self.panel, 0, wx.ALL, 10) 
     42        self.vbox.Add(self.fit_hsizer, 0, wx.ALL, 10) 
    4543 
    4644        self.message_text = wx.StaticText(self, -1, "If tests fail on OpenCL devices, " 
Note: See TracChangeset for help on using the changeset viewer.