804delta.html
来自「perl教程」· HTML 代码 · 共 149 行
HTML
149 行
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>Tk::804delta - what is new for perl/Tk 804</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>
<body>
<script>writelinks('__top__',2);</script>
<h1><a>Tk::804delta - what is new for perl/Tk 804</a></h1>
<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<li><a href="#incompatible_changes">Incompatible Changes</a></li>
<li><a href="#enhancements">Enhancements</a></li>
<li><a href="#new_widgets">New Widgets</a></li>
<li><a href="#selected_bug_fixes">Selected Bug Fixes</a></li>
<li><a href="#changed_internals">Changed Internals</a></li>
<li><a href="#platform_specific_problems">Platform Specific Problems</a></li>
<li><a href="#future_directions">Future Directions</a></li>
<li><a href="#reporting_bugs">Reporting Bugs</a></li>
<li><a href="#see_also">SEE ALSO</a></li>
</ul>
<!-- INDEX END -->
<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>Tk::804delta - what is new for perl/Tk 804</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This document describes differences between the Tk800 series and the
Tk804 series.</p>
<p>
</p>
<hr />
<h1><a name="incompatible_changes">Incompatible Changes</a></h1>
<p>Tk804 will only work with perl 5.8.0 and above. For older perl
versions look for Tk800.025.</p>
<p><strong>curselection</strong> of <strong>Tk::Listbox</strong> now returns an array reference in
scalar context. This means you have to write</p>
<pre>
my(@selected) = $listbox->curselection</pre>
<p>or</p>
<pre>
<span class="keyword">my</span><span class="operator">(</span><span class="variable">@selected</span><span class="operator">)</span> <span class="operator">=</span> <span class="variable">@</span><span class="operator">{</span> <span class="variable">$listbox</span><span class="operator">-></span><span class="variable">curselection</span> <span class="operator">}</span>
</pre>
<p>now.</p>
<p>The <strong>fontActual</strong> method now returns the pixel value instead of the
point value for <strong>-size</strong>. Pixel values are expressed as negative
numbers.</p>
<p>Some enhancements from the "dash" patches are lost for now
(i.e. <strong>-tile</strong>, <strong>-troughtile</strong> ...).</p>
<p>The <strong>-state</strong> option is not available anymore for <strong>Tk::Text</strong> tags.
Use <strong>-elide</strong> instead.</p>
<p>
</p>
<hr />
<h1><a name="enhancements">Enhancements</a></h1>
<p>Tk804 is Unicode-aware.</p>
<p>It is possible to build Tk with Xft support on X11. This is strongly
recommened if you are planning to make use of Unicode rendering
capabilities of Tk. It also gives anti-aliased fonts for regular text
(if you have TrueType or Type1 fonts and they are in your fontconfig
config file).</p>
<p>The new method <strong>chooseDirectory</strong> is available as a standard directory
selector.</p>
<p><strong>Tk::PNG</strong> and <strong>Tk::JPEG</strong> are bundled now with the perl/Tk
distribution, providing support for the image formats <strong>png</strong> and
<strong>jpeg</strong>.</p>
<p>Improvements to <strong>Tk::Listbox</strong>: new option <strong>-activestyle</strong>, new
methods <strong>itemconfigure</strong> and <strong>itemcget</strong>, new virtual event <strong><<
<<ListboxSelect</strong>> >>>.</p>
<p>More tests.</p>
<p>
</p>
<hr />
<h1><a name="new_widgets">New Widgets</a></h1>
<dl>
<dt><strong><a name="item_tk_3a_3alabelframe">Tk::Labelframe</a></strong>
<dd>
<p>An alternative to <strong>Tk::LabFrame</strong>.</p>
</dd>
</li>
<dt><strong><a name="item_tk_3a_3apanedwindow">Tk::Panedwindow</a></strong>
<dd>
<p>An alternative to <strong>Tk::Adjuster</strong>.</p>
</dd>
</li>
<dt><strong><a name="item_tk_3a_3aspinbox">Tk::Spinbox</a></strong>
<dd>
<p>An alternative to the CPAN module <strong>Tk::NumEntry</strong>.</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="selected_bug_fixes">Selected Bug Fixes</a></h1>
<p>
</p>
<hr />
<h1><a name="changed_internals">Changed Internals</a></h1>
<p>
</p>
<hr />
<h1><a name="platform_specific_problems">Platform Specific Problems</a></h1>
<p>
</p>
<hr />
<h1><a name="future_directions">Future Directions</a></h1>
<p>
</p>
<hr />
<h1><a name="reporting_bugs">Reporting Bugs</a></h1>
<p>If you find what you think is a bug, you might check the articles
recently posted to the comp.lang.perl.tk newsgroup.</p>
<p>If you believe you have an unreported bug, please send a mail to <<a href="mailto:ptk@lists.stanford.edu">ptk@lists.stanford.edu</a>> and/or <<a href="mailto:nick@ing-simmons.net">nick@ing-simmons.net</a>>. Be sure to trim your bug down
to a tiny but sufficient test case.</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p><a href="../../lib/Tk.html">the Tk manpage</a>.</p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?