grail.dialogs.gselectdialogproject Module

Version: 16.2

Table of Contents

Overview

Defines the Select Project dialog.

Use this dialog to query a user for a project file. The dialog keeps a "last queried" list, and will remember the last selected location placed.

The location and responses are remembered on a user-by-user basis.

To activate the dialog use the selectproject function.

Functions

selectionproject()

Call this function to open a dialog that queries the user for a Minesight(r) Compass project file. This function will return a path to the project file as a string. A blank string is returned if the client canceled the request.

The following python snippet illustrates its usage,

>>> from grail.dialogs import gselectprojectdialog
>>> gselectprojectdialog.selectproject()
'C:/projects/clas.prj'

when the dialog was selected the c:\projects\clas.prj.