Tk::Ob...rDialog(3pm)
π NAME π
Tk::ObjEditorDialog β it's a Tk composite widget that pops up an obj editor in a dialog, bestie π
β¨ SYNOPSIS β¨
use Tk::ObjEditorDialog;
my $editor = $mw->ObjEditorDialog( caller => $object,
direct => [1|0],
[title=>"windows"]) ;
$editor -> Show;
π¦ DESCRIPTION π¦
So basically this widget is an ObjEditor living inside a DialogBox widget. Meaning? It shows up in its own toplevel window when you call the Show() method β literally exactly like the FileDialog widget does. No cap. π
π Constructor parameters π
callerβ the ref of the object, hash or array you wanna edit. This one is mandatory, so don't come to the function with empty hands πtitleβ the title of the menu that the editor creates. Optional, lowkey a vibe upgrade β¨directβ set it to1if you want direct edition to happen π«Ά
πΈ Method πΈ
Show(grab)
Same energy as in Tk::DialogBox: this method displays the dialog box and just chills there until the user hits one of the buttons in the bottom frame. If you pass a grab type in grab, then Show uses that grab; otherwise it uses a local grab. It returns the name of the button that got invoked. Periodt. π
π CAVEATS π
Just like Tk::ObjScanner, ObjEditor does not detect recursive data structures. It will simply keep on displaying the tree until the user gets tired of clicking on the HList items. That's it. That's the warning. It'll go forever, fr fr π
π AUTHOR π
Dominique Dumont.
Copyright (c) 2001 Dominique Dumont. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π©·
π SEE ALSO π
perl(1), Tk, Tk::HList, Tk::ObjScanner, Tk::ObjEditor, Tk::DialogBox
Okay that's the whole page, bestie β this one shipped as perl v5.36.0, dated 2023-11-01, filed under Tk::Ob...rDialog(3pm) in the User Contributed Perl Documentation. Go forth and edit some objects π§π
π¦ where this page comes from
- debian trixie: libtk-objeditor-perl 2.010-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtk-objeditor-perl 2.010-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtk-objeditor-perl 2.010-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtk-objeditor-perl 2.010-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms