source: sasview/sansguiframe/src/sans/guiframe/config.py @ 8182fbb

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 8182fbb was 8182fbb, checked in by Jae Cho <jhjcho@…>, 12 years ago

working on pylint score

  • Property mode set to 100644
File size: 3.3 KB
Line 
1"""
2Application settings
3"""
4import os
5import time
6from sans.guiframe.gui_style import GUIFRAME
7# Version of the application
8__appname__ = "DummyView"
9__version__ = '0.0.0'
10__download_page__ = 'https://sourceforge.net/projects/sansviewproject/files/'
11__update_URL__ = 'http://sansviewproject.svn.sourceforge.net/viewvc/sansviewproject/trunk/sansview.latestversion'
12
13
14# Debug message flag
15__EVT_DEBUG__ = True
16
17# Flag for automated testing
18__TEST__ = False
19
20# Debug message should be written to a file?
21__EVT_DEBUG_2_FILE__   = False
22__EVT_DEBUG_FILENAME__ = "debug.log"
23
24# About box info
25_do_aboutbox = True
26_do_tutorial = True
27_acknowledgement =  \
28'''This software was developed by the University of Tennessee as part of the
29Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
30project funded by the US National Science Foundation.
31
32'''
33_homepage = "http://danse.chem.utk.edu"
34_download = "http://danse.chem.utk.edu/sansview.html"
35_authors = []
36_paper = "http://danse.us/trac/sans/newticket"
37_license = "mailto:sansdanse@gmail.com"
38_nsf_logo = "images/nsf_logo.png"
39_danse_logo = "images/danse_logo.png"
40_inst_logo = "images/utlogo.gif"
41_nsf_url = "http://www.nsf.gov"
42_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html"
43_inst_url = "http://www.utk.edu"
44_corner_image = "images/angles_flat.png"
45_welcome_image = "images/SVwelcome.png"
46_copyright = "(c) 2008, University of Tennessee"
47#edit the lists below of file state your plugin can read
48#for sansview this how you can edit these lists
49#PLUGIN_STATE_EXTENSIONS = ['.prv','.fitv', '.inv']
50#APPLICATION_STATE_EXTENSION = '.svs'
51#PLUGINS_WLIST = ['P(r) files (*.prv)|*.prv',
52#                  'Fitting files (*.fitv)|*.fitv',
53#                  'Invariant files (*.inv)|*.inv']
54#APPLICATION_WLIST = 'SansView files (*.svs)|*.svs'
55APPLICATION_WLIST = ''
56APPLICATION_STATE_EXTENSION = None
57PLUGINS_WLIST = []
58PLUGIN_STATE_EXTENSIONS = []
59SPLASH_SCREEN_PATH = "images/danse_logo.png"     
60DEFAULT_STYLE = GUIFRAME.SINGLE_APPLICATION
61SPLASH_SCREEN_WIDTH = 500
62SPLASH_SCREEN_HEIGHT = 300
63WELCOME_PANEL_ON  = False
64TUTORIAL_PATH = None
65SS_MAX_DISPLAY_TIME = 4000 #4 sec
66PLOPANEL_WIDTH = 350
67PLOPANEL_HEIGTH = 350
68GUIFRAME_WIDTH = 1000
69GUIFRAME_HEIGHT = 800
70SetupIconFile_win = os.path.join("images", "ball.ico")
71SetupIconFile_mac = os.path.join("images", "ball.icns")
72DefaultGroupName = "DANSE"
73OutputBaseFilename = "setupGuiFrame"
74DATAPANEL_WIDTH = 235
75DATAPANEL_HEIGHT = 700
76FIXED_PANEL = True
77DATALOADER_SHOW = True
78CLEANUP_PLOT = False
79WELCOME_PANEL_SHOW = False
80#Show or hide toolbar at the start up
81TOOLBAR_SHOW = True
82# set a default perspective
83DEFAULT_PERSPECTIVE = 'None'
84# OPEN and SAVE project menu
85OPEN_SAVE_PROJECT_MENU = True
86CLEANUP_PLOT = False
87# OPEN and SAVE project menu
88OPEN_SAVE_PROJECT_MENU = False
89#VIEW MENU
90VIEW_MENU = False
91#EDIT MENU
92EDIT_MENU = False
93import wx.lib.newevent
94(StatusBarEvent, EVT_STATUS) = wx.lib.newevent.NewEvent()
95
96def printEVT(message):
97    if __EVT_DEBUG__:
98        print "%g%s" % (time.clock(), message)
99       
100        if __EVT_DEBUG_2_FILE__:
101            out = open(__EVT_DEBUG_FILENAME__, 'a')
102            out.write("%10g%s\n" % (time.clock(), message))
103            out.close()
104           
Note: See TracBrowser for help on using the repository browser.