Tk::Ob...rDialog(3pm)

πŸ“¦
version 2.010 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 to 1 if 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