View Issue Details

IDProjectCategoryView StatusLast Update
0007604ScribusScripterpublic2014-07-03 04:51
Reporterhenryhartley Assigned Tosubik  
PrioritynormalSeverityfeatureReproducibilityN/A
Status assignedResolutionopen 
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

Activities

jghali

2008-11-12 20:57

administrator   ~0020652

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 16:18 henryhartley New Issue
2008-11-12 20:57 jghali Note Added: 0020652
2009-02-12 20:33 cbradney Status new => assigned
2009-02-12 20:33 cbradney Assigned To => subik
2009-02-12 20:33 cbradney Target Version => 1.3.6
2014-07-03 04:51 Kunda Target Version 1.5.0 => 1.6 milestone