[scribus-dev] Features request

Gregory Pittman gpittman at iglou.com
Sun Mar 13 15:58:54 UTC 2016


On 03/13/2016 11:14 AM, Sergio Spina wrote:
> It seem that would be very nice and useful if the scripter could manage
> the following functions:
> 
> 1) A value dialog with a list of radio-buttons, aimed to let the user
> choose an option between some:
> 
>>  radiobuttonsDialog(caption, message, list of strings [, defaultvalue]) -> string
>>  e.g.:
>>  radiobuttonsDialog('MyAppName', 'Choose a color for the background.',
>>      ['White', 'Yellow', 'Orange', 'Red', 'Purple'], 'Yellow')
> 
> 
> 2) A value dialog with a combo-box, aimed to let the user choose an
> option between a lot:
> 
>>  comboDialog(caption, message, list of strings [, defaultvalue]) -> string
>>  e.g.:
>>  fontList = getFontList
>>  comboDialog('MyAppName', 'Choose a font for the document.',
>>      fontList, 'Times New Roman')
> 
> 3) A value dialog with a list of check-boxes, aimed to let the user
> choose some options between some:
> 
>>  checkboxesDialog(caption, message, Dictionary of options) -> Dictionary of options
>>  e.g.:
>>  checkboxesDialog('MyAppName', 'Select the features that you want be implemented:',
>>      {'Accountability': False,
>>       'Marchantability': False,
>>       'Readability': False,
>>       'Drinkability': False})
>>
>>  return
>>
>>  {'Accountability': True,
>>   'Marchantability': False,
>>   'Readability': True,
>>   'Drinkability': False})
> 
> I cannot code in C/C++, but these features shouldn't be too diffucult to
> implement, despite their sure usefulness.
> 

These are implemented now using tkinter. I you look at CalendarWizard or
FontSampler you will how this is done.

Greg



More information about the scribus-dev mailing list