Ignore:
Timestamp:
Apr 1, 2009 1:02:56 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
9d4e502
Parents:
db39b2a
Message:

removing all codes.and add highlight for textcrtl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/welcome_panel.py

    r823905f r1328e03  
    8181        self.static_line_1 = wx.StaticLine(self, -1) 
    8282        self.label_acknowledgement = wx.StaticText(self, -1, config._acknowledgement) 
    83        
    84  
    85         
    86  
     83         
     84        self.hyperlink_license = wx.StaticText(self, -1, "Comments? Bugs? Requests?") 
     85        self.hyperlink_paper = wx.lib.hyperlink.HyperLinkCtrl(self, -1, 
     86                                         "Send us a ticket",URL=config._license) 
    8787        # end wxGlade 
    88      
     88         
    8989#       
    9090        # randomly shuffle authors' names 
     
    114114        sizer_main = wx.BoxSizer(wx.VERTICAL) 
    115115        sizer_header = wx.BoxSizer(wx.HORIZONTAL) 
    116         sizer_build = wx.GridBagSizer(0,0) 
     116        sizer_build = wx.BoxSizer(wx.VERTICAL) 
    117117        
    118118        
    119119        sizer_header.Add(self.bitmap_logo, 0, wx.EXPAND|wx.LEFT, 5) 
    120120         
    121         ix = 0 
    122         iy = 0 
    123         sizer_build.Add((20,20),(iy,ix),(1,1),wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)   
    124         iy +=1 
    125         sizer_build.Add(self.label_acknowledgement,(iy,ix),(1,1),wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)   
    126         iy +=1 
    127         sizer_build.Add(self.label_title ,(iy,ix),(1,1),wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)   
    128         ix = 0 
    129         iy +=1 
    130         sizer_build.Add(self.label_build,(iy,ix),(1,1),wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)   
    131         ix = 0 
    132         iy +=1 
    133         sizer_build.Add( self.label_copyright,(iy,ix),(1,1),wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)  
     121         
     122        sizer_build.Add(self.label_acknowledgement,0,wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)   
     123        sizer_build.Add((5,5)) 
     124        sizer_build.Add(self.label_title ,0,wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)   
     125        sizer_build.Add(self.label_build,0,wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)   
     126        sizer_build.Add( self.label_copyright,0,wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)  
     127        sizer_build.Add((5,5)) 
     128        sizer_build.Add( self.hyperlink_license,0,wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)  
     129        sizer_build.Add( self.hyperlink_paper,0,wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15)  
    134130         
    135131        sizer_main.Add(sizer_header, 0, wx.TOP|wx.EXPAND, 3) 
     
    147143 
    148144# end of class DialogAbout 
     145class HelpWindow(wx.Frame): 
     146    def __init__(self, parent, id, title): 
     147        wx.Frame.__init__(self, parent, id, title, size=(570, 400)) 
     148        
     149         
     150        self.page = PanelAbout(self) 
     151         
     152        self.Centre() 
     153        self.Show(True) 
    149154 
     155 
     156    
     157if __name__=="__main__": 
     158    app = wx.App() 
     159    HelpWindow(None, -1, 'HelpWindow') 
     160    app.MainLoop() 
     161         
Note: See TracChangeset for help on using the changeset viewer.