source: sasview/sansguiframe/src/sans/guiframe/config.py @ 6f65614

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 6f65614 was 3f68e93, checked in by Jae Cho <jhjcho@…>, 13 years ago

fixing pylint warnings

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