source: sasview/prview/local_config.py @ 8e3dc19

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 8e3dc19 was 8e3dc19, checked in by Jae Cho <jhjcho@…>, 13 years ago

control menu differently on app

  • Property mode set to 100644
File size: 3.0 KB
Line 
1"""
2Application settings
3"""
4import time
5import os
6from sans.guiframe.gui_style import GUIFRAME
7
8# Version of the application
9__appname__ = "PrView"
10__version__ = '0.9.1'
11__download_page__ = 'http://danse.chem.utk.edu'
12__update_URL__ = 'http://danse.chem.utk.edu/prview_version.php'
13
14
15# Debug message flag
16__EVT_DEBUG__ = False
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_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
32If you use DANSE applications to do scientific research that leads to publication,
33we ask that you acknowledge the use of the software with the following sentence:
34
35"This work benefited from DANSE software developed under NSF award DMR-0520547."
36'''
37_homepage = "http://danse.chem.utk.edu"
38_download = "http://danse.chem.utk.edu/prview.html"
39_authors = []
40_paper = "http://danse.us/trac/sans/newticket"
41_license = "mailto:sansdanse@gmail.com"
42
43_nsf_logo = "images/nsf_logo.png"
44_danse_logo = "images/danse_logo.png"
45_inst_logo = "images/utlogo.gif"
46_nsf_url = "http://www.nsf.gov"
47_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html"
48_inst_url = "http://www.utk.edu"
49_corner_image = "images/prview.jpg"
50_copyright = "(c) 2008, University of Tennessee"
51#edit the list of file state your plugin can read
52# About box info
53_do_aboutbox=True
54_do_tutorial = False
55APPLICATION_STATE_EXTENSION = '.prv'
56APPLICATION_WLIST = 'P(r) files (*.prv)|*.prv'
57DEFAULT_STYLE = GUIFRAME.DEFAULT_STYLE
58GUIFRAME_WIDTH = 900
59GUIFRAME_HEIGHT = 780
60PLUGIN_STATE_EXTENSIONS = ['.prv']
61PLUGINS_WLIST = ['P(r) files (*.prv)|*.prv']
62PLOPANEL_WIDTH = 350
63PLOPANEL_HEIGTH = 350
64SPLASH_SCREEN_PATH = os.path.join("images", "danse_logo.png")
65SPLASH_SCREEN_WIDTH = 500
66SPLASH_SCREEN_HEIGHT = 300
67SS_MAX_DISPLAY_TIME = 3000 #3 sec
68SetupIconFile_win = os.path.join("images", "ball.ico")
69SetupIconFile_mac = os.path.join("images", "ball.icns")
70DefaultGroupName = "DANSE"
71OutputBaseFilename = "setupPrView"
72DATAPANEL_WIDTH = 235
73DATAPANEL_HEIGHT = 700
74FIXED_PANEL = True
75DATALOADER_SHOW = True
76CLEANUP_PLOT = False
77WELCOME_PANEL_ON  = False
78#Show or hide toolbar at the start up
79TOOLBAR_SHOW = True
80#Open Save project menu
81OPEN_SAVE_PROJECT_MENU = False
82#VIEW MENU
83VIEW_MENU = True
84#EDIT MENU
85EDIT_MENU = True
86# set a default perspective
87DEFAULT_PERSPECTIVE = 'None'
88import wx.lib.newevent
89(StatusBarEvent, EVT_STATUS) = wx.lib.newevent.NewEvent()
90
91def printEVT(message):
92    if __EVT_DEBUG__:
93        print "%g%s" % (time.clock(), message)
94       
95        if __EVT_DEBUG_2_FILE__:
96            out = open(__EVT_DEBUG_FILENAME__, 'a')
97            out.write("%10g%s\n" % (time.clock(), message))
98            out.close()
99           
Note: See TracBrowser for help on using the repository browser.