rivetkdialog-0.2
This is the Rivet version of tkdialog.
********************** This is a Beta version **********************
I just finished porting it to Rivet, and probably contains a few
bugs. The file dialogs work: open and save dialog. Also the warning
dialog works. I haven't tested much else.
Please send bug reports and fixes to:
[email protected]
Enjoy, Koert Zeilstra
********************************************************************
This directory contains a couple of dialog boxes, including a
load/save file dialog, for Rivet. The code was originally written
by Ken Howard; Graham Matthews added comments, reformatted it and
added code to the utils.py and assert.py files.
Ported to Rivet by Koert Zeilstra.
The directory contains the following files:
alert.py - Base and derived classes for error/warning dialogs.
assert.py - The usual debugging style assertion routines.
dialog.py - Base class for a modal and non-modal dialogs.
filedlg.py - Contains a load file and save file dialogs.
loadfile.py - Demo application.
utils.py - A simple utility file.
To test:
1. Run loadfile.py
2. Click the load file button.
3. Play with the load file dialog.
4. If a choice is made and the dialog is dismissed, the button label
will reflect the choice.
Alternatively:
import rivet
import filedlg
root = rivet.init()
def press ():
fileDlg = filedlg.LoadFileDialog(root, "Load", "*")
if fileDlg.Show() == 1:
fname = fileDlg.GetFileName()
button.configure({'text': 'File: ' + fname})
fileDlg.DialogCleanup()
frame = rivet.frame(root)
button = rivet.button(frame,
{'text': 'Load File...', 'command': press})
button.pack({"side": "top"})
frame.pack()
rivet.mainloop ()
*************************** What's New ***************************
Version 0.2:
- Fixed a few bugs; forgot the modal grab, code to set pixmap on
messagebox.
- Added support for selecting parent directory ('..')
- Changed interface slightly, removed excessive raising of frames,
made resizing look prettier.
- Got rid of posixpath for portability.
Version 0.1:
- Straight port from tkdialog.