Model Railroad System  2.2.2
Functions
FileEntry Namespace Reference

This is a specialized form of the LabelEntry widget intended for selecting file names. More...

Functions

 create (path,...)
 Creation procedure. More...
 
 configure (path,...)
 Configuration procedure: configure one or more options for this widget. More...
 
 cget (path, option)
 Configuration option accessor procedure: access one option directly. More...
 
 bind (path,...)
 Bind function. More...
 
 _path_command (path, cmd, larg)
 Path command for this megawidget. More...
 
 _destroy (path)
 Destructor function. More...
 
 _openFile (path)
 Prodedure bound to the file open button. More...
 

Detailed Description

This is a specialized form of the LabelEntry widget intended for selecting file names.

A button is included to the right of the entry that pops up a file selection dialog. Many of the resources from LabelFrame, Entry, and Button are included in this widget.

Parameters
pathThe widget path.
...Options:
  • -filebitmap The name of a bitmap to use for the button. By default an option folder image is used.
  • -fileimage The name of an image to use for the button. By default an option folder image is used.
  • -filedialog The type of file dialog to use. Should be one of open, save, or directory. If open, tk_getOpenFile is used; if save, tk_getSaveFile is used; and if directory, tk_chooseDirectory is used.
  • -defaultextension This option is passed to tk_getOpenFile or tk_getSaveFile.
  • -filetypes This option is passed to tk_getOpenFile or tk_getSaveFile.
  • -title This option is passed to tk_getOpenFile or tk_getSaveFile.
  • -labeljustify From LabelFrame (-justify).
  • -labelwidth From LabelFrame (-width).
  • -labelanchor From LabelFrame (-anchor).
  • -labelheight From LabelFrame (-height).
  • -labelfont From LabelFrame (-font).
  • -labeltextvariable From LabelFrame (-textvariable).
  • -label From LabelFrame (-text).
  • -entryfg From Entry (-foreground).
  • -entrybg From Entry (-background).
  • -text From Entry.
  • -buttonfg From Button (-foreground).
  • -buttonbg From Button (-background).
  • -buttonactivebg From Button (-activebackground).
  • -buttonactivefg From Button (-activeforeground).
  • -buttondisabledfg From Button (-disabledforeground).
  • -buttonhighlightbg From Button (-highlightbackground).
  • -buttonhighlightcolor From Button (-highlightcolor).
Author
Robert Heller <heller@deepsoft.com>

Package provided

BWFileEntry 1.0.0

Function Documentation

◆ _destroy()

FileEntry::_destroy ( path  )
private

Destructor function.

Parameters
pathThe path of the megawidget.

◆ _openFile()

FileEntry::_openFile ( path  )
private

Prodedure bound to the file open button.

Pops up a file selector dialog.

Parameters
pathThe path of the megawidget.

◆ _path_command()

FileEntry::_path_command ( path  ,
cmd  ,
larg   
)
private

Path command for this megawidget.

Implements all of the megawidget commands.

Parameters
pathThe path of the megawidget.
cmdThe command name.
largThe command argument.

◆ bind()

FileEntry::bind ( path  ,
  ... 
)

Bind function.

Passthrough to the entry widget.

Parameters
pathThe path of the megawidget.
...Bind arguments

Referenced by lcc::ConfigurationEditor::_readall().

◆ cget()

FileEntry::cget ( path  ,
option   
)

Configuration option accessor procedure: access one option directly.

Parameters
pathThe path of the megawidget.
optionThe option to access

Referenced by ReadConfiguration::ConfigurationType(), lcc::GridConnectMessage::setByte(), and lcc::OpenLCBMessage::toString().

◆ configure()

FileEntry::configure ( path  ,
  ... 
)

Configuration procedure: configure one or more options for this widget.

Parameters
pathThe path of the megawidget.
...Option value pairs.

Referenced by lcc::ConfigurationEditor::_readall(), and lcc::GridConnectMessage::_set_rtr().

◆ create()

FileEntry::create ( path  ,
  ... 
)

Creation procedure.

Parameters
pathThe megawidget's path.
...Options for this widget.

Referenced by CTCPanel::Crossing::_VerifyCrossingType(), and CTCPanel::Crossover::invoke().