Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我们想删除条目小部件的内容,我们可以使用 delete 和条目对象。
例子
$ent->delete(0,'end');
但我想删除文本小部件内容。谁能告诉我删除文本小部件内容的功能是什么?
使用以下方式
使用 Tk; 使用 Tk::Text ; ………… 我的 $txt = $mw->Text( -background =>'white', )-> pack (); $txt -> 删除('1.0','end');
使用 Tk;
使用 Tk::Text ;
…………
我的 $txt = $mw->Text( -background =>'white', )-> pack ();
$txt -> 删除('1.0','end');
参考链接。http://legacyweb.triumf.ca/people/cpayne/perl/Tk/Text.html>Tk::Text