Changeset 3e943e8 in sasview


Ignore:
Timestamp:
Mar 25, 2011 10:38:35 AM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
68c53a4
Parents:
957723f
Message:

working on local_config of prview

Location:
prview
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • prview/PrView.py

    r9590db6 r3e943e8  
    22#import gui_manager 
    33from sans.guiframe import gui_manager 
    4 from sans.guiframe.gui_style import GUIFRAME 
     4 
    55# For py2exe, import config here 
    66import local_config 
     
    88 
    99 
    10 # Application dimensions 
    11 APP_HEIGHT = 780 
    12 APP_WIDTH  = 850 
    13 PROG_SPLASH_SCREEN = "images/ball.png" 
    1410 
    1511class PrApp(gui_manager.ViewApp): 
    1612    """ 
    1713    """ 
    18     SIZE = (APP_WIDTH, APP_HEIGHT) 
    19     TITLE = local_config.__appname__ 
    20     PROG_SPLASH_PATH = PROG_SPLASH_SCREEN 
    21     STYLE = GUIFRAME.DEFAULT_STYLE 
    22      
     14    
    2315class PrView(): 
    2416    """ 
  • prview/local_config.py

    r7116b6e0 r3e943e8  
    33""" 
    44import time 
     5from sans.guiframe.gui_style import GUIFRAME 
    56 
    67# Version of the application 
     
    4748_corner_image = "images/prview.jpg" 
    4849_copyright = "(c) 2008, University of Tennessee" 
     50#edit the list of file state your plugin can read 
     51PLUGIN_STATE_EXTENSIONS = ['.prv'] 
     52APPLICATION_STATE_EXTENSION = '.prv' 
     53# 
     54WLIST = ['P(r) files (*.prv)|*.prv'] 
     55SPLASH_SCREEN_PATH = "images/danse_logo.png" 
     56DEFAULT_STYLE = GUIFRAME.DEFAULT_STYLE 
     57SPLASH_SCREEN_WIDTH = 500 
     58SPLASH_SCREEN_HEIGHT = 300 
     59SS_MAX_DISPLAY_TIME = 3000 #3 sec 
     60PLOPANEL_WIDTH = 400 
     61PLOPANEL_HEIGTH = 400 
     62GUIFRAME_WIDTH = 850 
     63GUIFRAME_HEIGHT = 780 
    4964 
    5065import wx.lib.newevent 
Note: See TracChangeset for help on using the changeset viewer.