[doc] misc. fix & improvements
[scilab.git] / scilab / modules / core / help / ru_RU / configuration / with_tk.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="with_tk">
3     <refnamediv>
4         <refname>with_tk</refname>
5         <refpurpose>
6             проверка: собран ли Scilab с TCL/TK  (<emphasis role="bold">obsolete</emphasis>)
7         </refpurpose>
8     </refnamediv>
9     <refsynopsisdiv>
10         <title>Синтаксис</title>
11         <synopsis>r = with_tk()</synopsis>
12     </refsynopsisdiv>
13     <refsection>
14         <title>Аргументы</title>
15         <variablelist>
16             <varlistentry>
17                 <term>r</term>
18                 <listitem>
19                     <para>логическое значение</para>
20                 </listitem>
21             </varlistentry>
22         </variablelist>
23     </refsection>
24     <refsection>
25         <title>Описание</title>
26         <warning>
27             <literal>with_tk()</literal> will no longer be available in Scilab 6.1.
28             Please use <literal>with_module("tclsci")</literal> instead.
29         </warning>
30         <para>
31             Возвращает <constant>%t</constant>, если Scilab собран с TCL/TK-интерфейсом, и
32             <constant>%f</constant>, если нет.
33         </para>
34     </refsection>
35     <refsection>
36         <title>Примеры</title>
37         <programlisting role="example"><![CDATA[
38 if with_tk() == %t then
39    disp("Tk доступен");
40 else
41    disp("Tk не доступен");
42 end
43  ]]></programlisting>
44     </refsection>
45     <refsection role="history">
46         <title>История</title>
47         <revhistory>
48             <revision>
49                 <revnumber>6.0.2</revnumber>
50                 <revdescription>
51                     with_tk() is declared obsolete to be removed from Scilab 6.1.
52                     It may be replaced with <literal>with_module("tclsci")</literal>.
53                 </revdescription>
54             </revision>
55         </revhistory>
56     </refsection>
57 </refentry>