source: sasview/sansguiframe/src/sans/guiframe/config.py @ 6034e16

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 6034e16 was 6e48fd0, checked in by Jae Cho <jhjcho@…>, 12 years ago

data operation: added scale for 2D plot

  • Property mode set to 100644
File size: 3.5 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_nist_logo = "images/nist_logo.png"
43_umd_logo = "images/umd_logo.png"
44_sns_logo = "images/sns_logo.png"
45_nist_url = "http://www.nist.gov/"
46_umd_url = "http://www.umd.edu/"
47_sns_url = "http://neutrons.ornl.gov/"
48_nsf_url = "http://www.nsf.gov"
49_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html"
50_inst_url = "http://www.utk.edu"
51_corner_image = "images/angles_flat.png"
52_welcome_image = "images/SVwelcome.png"
53_copyright = "(c) 2008, University of Tennessee"
54#edit the lists below of file state your plugin can read
55#for sansview this how you can edit these lists
56#PLUGIN_STATE_EXTENSIONS = ['.prv','.fitv', '.inv']
57#APPLICATION_STATE_EXTENSION = '.svs'
58#PLUGINS_WLIST = ['P(r) files (*.prv)|*.prv',
59#                  'Fitting files (*.fitv)|*.fitv',
60#                  'Invariant files (*.inv)|*.inv']
61#APPLICATION_WLIST = 'SansView files (*.svs)|*.svs'
62APPLICATION_WLIST = ''
63APPLICATION_STATE_EXTENSION = None
64PLUGINS_WLIST = []
65PLUGIN_STATE_EXTENSIONS = []
66SPLASH_SCREEN_PATH = "images/danse_logo.png"     
67DEFAULT_STYLE = GUIFRAME.SINGLE_APPLICATION
68SPLASH_SCREEN_WIDTH = 500
69SPLASH_SCREEN_HEIGHT = 300
70WELCOME_PANEL_ON  = False
71TUTORIAL_PATH = None
72SS_MAX_DISPLAY_TIME = 4000 #4 sec
73PLOPANEL_WIDTH = 350
74PLOPANEL_HEIGTH = 350
75GUIFRAME_WIDTH = 1000
76GUIFRAME_HEIGHT = 800
77SetupIconFile_win = os.path.join("images", "ball.ico")
78SetupIconFile_mac = os.path.join("images", "ball.icns")
79DefaultGroupName = "DANSE"
80OutputBaseFilename = "setupGuiFrame"
81DATAPANEL_WIDTH = 235
82DATAPANEL_HEIGHT = 700
83FIXED_PANEL = True
84DATALOADER_SHOW = True
85CLEANUP_PLOT = False
86WELCOME_PANEL_SHOW = False
87#Show or hide toolbar at the start up
88TOOLBAR_SHOW = True
89# set a default perspective
90DEFAULT_PERSPECTIVE = 'None'
91# OPEN and SAVE project menu
92OPEN_SAVE_PROJECT_MENU = True
93CLEANUP_PLOT = False
94# OPEN and SAVE project menu
95OPEN_SAVE_PROJECT_MENU = False
96#VIEW MENU
97VIEW_MENU = False
98#EDIT MENU
99EDIT_MENU = False
100import wx.lib.newevent
101(StatusBarEvent, EVT_STATUS) = wx.lib.newevent.NewEvent()
102
103def printEVT(message):
104    if __EVT_DEBUG__:
105        print "%g%s" % (time.clock(), message)
106       
107        if __EVT_DEBUG_2_FILE__:
108            out = open(__EVT_DEBUG_FILENAME__, 'a')
109            out.write("%10g%s\n" % (time.clock(), message))
110            out.close()
111           
Note: See TracBrowser for help on using the repository browser.