Changeset 861f8317 in sasview
- Timestamp:
- Sep 27, 2011 11:50:13 PM (13 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/pyconsole.py
rec6c520 r861f8317 2 2 Console Module display Python console 3 3 """ 4 import wx 4 5 import wx.py.crust 5 6 import sys … … 29 30 title=title, size=size, 30 31 dataDir=dataDir) 31 32 self._import_site() 32 33 self.parent = parent 33 34 self._manager = manager 34 35 self.Centre() 35 36 37 def _import_site(self): 38 """ 39 Import site for exe 40 """ 41 import site 42 36 43 def set_manager(self, manager): 37 44 """ … … 39 46 """ 40 47 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 58 ABOUT = "Welcome to Python 2.5! \n\n" 59 ABOUT += "This window uses PyCrust in wx (developed by Patrick K. O'Brien).\n" 60 ABOUT += "If this is your first time using Python, \n" 61 ABOUT += "you should definitely check out the tutorial " 62 ABOUT += "on the Internet at http://www.python.org/doc/tut/." 42 63 64 43 65 if __name__ == "__main__": 44 66
Note: See TracChangeset
for help on using the changeset viewer.