Changeset 861f8317 in sasview


Ignore:
Timestamp:
Sep 27, 2011 11:50:13 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
2e9d14c
Parents:
ec6c520
Message:

Added custom about

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/pyconsole.py

    rec6c520 r861f8317  
    22Console Module display Python console 
    33""" 
     4import wx 
    45import wx.py.crust 
    56import sys 
     
    2930                                        title=title, size=size, 
    3031                                        dataDir=dataDir) 
    31     
     32        self._import_site() 
    3233        self.parent = parent 
    3334        self._manager = manager 
    3435        self.Centre() 
    3536 
     37    def _import_site(self): 
     38        """ 
     39        Import site for exe 
     40        """ 
     41        import site 
     42         
    3643    def set_manager(self, manager): 
    3744        """ 
     
    3946        """ 
    4047        self._manager = manager 
    41       
     48         
     49    def OnAbout(self, event): 
     50        """ 
     51        On About 
     52        """ 
     53        message = ABOUT 
     54        dial = wx.MessageDialog(self, message, 'About Python', 
     55                           wx.OK|wx.ICON_INFORMATION)   
     56        dial.ShowModal() 
     57         
     58ABOUT =  "Welcome to Python 2.5! \n\n" 
     59ABOUT += "This window uses PyCrust in wx (developed by Patrick K. O'Brien).\n" 
     60ABOUT += "If this is your first time using Python, \n" 
     61ABOUT += "you should definitely check out the tutorial " 
     62ABOUT += "on the Internet at http://www.python.org/doc/tut/." 
    4263  
     64         
    4365if __name__ == "__main__": 
    4466    
Note: See TracChangeset for help on using the changeset viewer.