Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007604ScribusScripterpublic2008-11-11 17:182014-07-03 06:51
Reporterhenryhartley 
Assigned Tosubik 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target Version1.6 milestoneFixed in Version 
Summary0007604: New Scripter Dialog Request
DescriptionIt would be nice to have one or more new dialogs available to the scripter API. Specifically, some way to ask users to either select one or select one or more items from a list. I don't really care how it's handled on the back-end or the syntax, but a suggestion would be to pass an associative array with the keys being the values passed to the scripter for the values being selected, along with a flag specifying whether the user may select one only or more than one.

So, for instance,

months = {'1':'January', '2':'February', ... }
thisMonth = selectDialog(months, 'single')

would produce a dialog with a list of radio buttons (or a drop-down list) allowing one month to be selected. If February is selected, then '2' will be assigned to thisMonth. As an alternative to 'single' and 'multiple', it might be even better to use 'radio', 'checkbox', 'list', and 'listmulti' where radio and list allow one option to be selected, checkbox and listmulti allow multiple items to be selected. If instead of an associative array, a simple array is passed, the items in the array would be both the value passed and the displayed text.
TagsNo tags attached.
Patch
Attached Files

- Relationships

-  Notes
(0020652)
jghali (administrator)
2008-11-12 21:57

You could code that class yourself in Python using Tkinter. For sample on how to use Tkinter, see CalendarWizard.py or FontSample.py

- Issue History
Date Modified Username Field Change
2008-11-11 17:18 henryhartley New Issue
2008-11-12 21:57 jghali Note Added: 0020652
2009-02-12 21:33 cbradney Status new => assigned
2009-02-12 21:33 cbradney Assigned To => subik
2009-02-12 21:33 cbradney Target Version => 1.3.6
2014-07-03 06:51 Kunda Target Version 1.5.0 => 1.6 milestone



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker