From: <no...@tc...> - 2025-06-24 18:48:14
|
Automated mail by fx, on behalf of no...@tc... Ticket Change [3691e22678aba908fb54669a4b5190db10ef0992bb2927310372cfe7c486fa0a] [Unknown options error for ProgressDlg and PasswdDlg] By oehhar For BWidget On 2025-06-24T18:45:01.529 Details https://core.tcl-lang.org/bwidget/tinfo?name=3691e22678aba908fb54669a4b5190db10ef0992bb2927310372cfe7c486fa0a Ticket https://core.tcl-lang.org/bwidget/tktview/378209fe023935a5308af7e6a345ab945bc36202 Changed Fields icomment: Thank you for the proposal. Here is the test branch for ProgressDlg and PasswdDlg: commit [1119d44d62] in branch [378209fe-map-to-parent-class]. Then, only the options of Dialog are returned by the configure method: <verbatim> % ProgressDlg .p .p % join [lsort [.p configure]] \ -anchor anchor Anchor c e -background background Background SystemButtonFace SystemButtonFace -bg background -bitmap bitmap Bitmap {} {} -cancel cancel cancel -1 -1 -class class Class Dialog ProgressDlg -default default Default -1 -1 -geometry geometry geometry {} {} -homogeneous homogeneous homogeneous 1 1 -image image Image {} image1 -modal modal modal local none -padx padX Pad 10 1 -pady padY Pad 1 1 -parent parent parent {} {} -place place place center center -separator separator separator 0 0 -side side side bottom bottom -spacing spacing spacing 10 10 -state state State normal normal -title title title {} {} -transient transient transient 1 1 </verbatim> The documentation lists the following options: * STANDARD OPTIONS: -font -textvariable * OPTIONS from Dialog: -background -bg -parent -separator -title * OPTIONS from ProgressBar: -background -bg -borderwidth -bd -foreground -fg -maximum -relief -troughcolor -type -variable * WIDGET-SPECIFIC OPTIONS: -command -height -stop -width This is not in-line with the returned options. The returned options are those from the Dialog command. See the default class "Dialog" and the current class "ProgressDlg". Here a bit of archelogy: <verbatim> % parray Widget::_class Widget::_class(.help_shell) = DynamicHelp Widget::_class(.p) = Dialog Widget::_class(.p#ProgressDlg) = ProgressDlg Widget::_class(.p.bbox) = ButtonBox Widget::_class(.p.frame.pb) = ProgressBar </verbatim> By querying ".p", the Dialog class is used. By querying ".p#ProgressDlg", the right class is used, but an error is thrown. About the "SelectColor::use" in pckIndex.tcl, this is moved to new ticket [c847b2c6]. THanks for all, Harald login: oehhar username: oehhar ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl-lang.org/ ------------------------------------------------------------ |