sas.sasview package

Submodules

sas.sasview.custom_config module

Application appearance custom configuration

sas.sasview.installer_generator module

This module generates .iss file according to the local config of the current application. Please make sure a file named “local_config.py” exists in the current directory. Edit local_config.py according to your needs.

sas.sasview.installer_generator.find_extension()[source]

Describe the extensions that can be read by the current application

sas.sasview.installer_generator.generate_installer()[source]
sas.sasview.installer_generator.write_code()[source]

Code that checks the existing path and snaviewpath in the environmental viriables/PATH

sas.sasview.installer_generator.write_dirs()[source]

Define Dir permission

sas.sasview.installer_generator.write_file()[source]

copy some data files

sas.sasview.installer_generator.write_icon()[source]

Create application icon

sas.sasview.installer_generator.write_language(language=['english'], msfile='compiler:Default.isl')[source]

define the language of the application

sas.sasview.installer_generator.write_registry(data_extension=None, app_extension=None)[source]

create file association for windows. Allow open file on double click

sas.sasview.installer_generator.write_run()[source]

execute some file

sas.sasview.installer_generator.write_tasks()[source]

create desktop icon

sas.sasview.installer_generator.write_uninstalldelete()[source]

Define uninstalldelete

sas.sasview.local_config module

Application settings

sas.sasview.local_config.printEVT(message)[source]

sas.sasview.sasview module

Base module for loading and running the main SasView application.

class sas.sasview.sasview.SasView[source]

Main class for running the SasView application

class sas.sasview.sasview.StreamToLogger(logger, log_level=20)[source]

Bases: object

File-like stream object that redirects writes to a logger instance.

write(buf)[source]

Main logging method

sas.sasview.sasview.run()[source]

__main__ method for loading and running SasView

sas.sasview.setup_exe module

sas.sasview.setup_mac module

sas.sasview.welcome_panel module

Welcome page

class sas.sasview.welcome_panel.ViewApp(redirect=False, filename=None, useBestVisual=False, clearSigInt=True)[source]

Bases: wx._core.App

Test application

OnInit()[source]
class sas.sasview.welcome_panel.WelcomeFrame(parent, id, title)[source]

Bases: wx._windows.Frame

Test frame

class sas.sasview.welcome_panel.WelcomePage(parent, *args, **kwds)[source]

Bases: wx.lib.scrolledpanel.ScrolledPanel

Panel created like about box as a welcome page Shows product name, current version, authors, and link to the product page.

CENTER_PANE = True
set_data(data=None)[source]
window_caption = 'Welcome panel'
window_name = 'default'
class sas.sasview.welcome_panel.WelcomePanel(parent, *args, **kwds)[source]

Bases: wx.aui.AuiNotebook, sas.guiframe.panel_base.PanelBase

Panel created like about box as a welcome page Shows product name, current version, authors, and link to the product page.

CENTER_PANE = True
get_frame()[source]
on_close_page(event)[source]

Called when the welcome panel is closed

set_data(data=None)[source]
set_frame(frame)[source]
set_manager(manager)[source]

the manager of the panel in this case the application itself

window_caption = 'Welcome panel'
window_name = 'default'

sas.sasview.wxcruft module

class sas.sasview.wxcruft.CallLater(millis, callableObj, *args, **kwargs)[source]

A convenience class for wx.Timer, that calls the given callable object once after the given amount of milliseconds, passing any positional or keyword args. The return value of the callable is availbale after it has been run with the GetResult method.

If you don’t need to get the return value or restart the timer then there is no need to hold a reference to this object.

See:wx.CallAfter
GetInterval()[source]
GetResult()[source]
HasRun()[source]
Interval
IsRunning()[source]
Notify()[source]

The timer has expired so call the callable.

Restart(millis=None, *args, **kwargs)

(Re)start the timer

Result
SetArgs(*args, **kwargs)[source]

(Re)set the args passed to the callable object. This is useful in conjunction with Restart if you want to schedule a new call to the same callable object but with different parameters.

Start(millis=None, *args, **kwargs)[source]

(Re)start the timer

Stop()[source]

Stop and destroy the timer.

class sas.sasview.wxcruft.FutureCall(millis, callableObj, *args, **kwargs)[source]

Bases: sas.sasview.wxcruft.CallLater

A compatibility alias for CallLater.

sas.sasview.wxcruft.NewId()[source]
class sas.sasview.wxcruft.PyTimer(notify, *args, **kw)[source]

Bases: wx._misc.Timer

Notify()[source]
sas.sasview.wxcruft.call_later_fix()[source]
sas.sasview.wxcruft.trace_new_id()[source]

Module contents