<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dabo.leafe.com/index.php?action=history&amp;feed=atom&amp;title=Dabo.ui.getFileAndType</id>
	<title>Dabo.ui.getFileAndType - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dabo.leafe.com/index.php?action=history&amp;feed=atom&amp;title=Dabo.ui.getFileAndType"/>
	<link rel="alternate" type="text/html" href="https://wiki.dabo.leafe.com/index.php?title=Dabo.ui.getFileAndType&amp;action=history"/>
	<updated>2026-11-21T14:05:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://wiki.dabo.leafe.com/index.php?title=Dabo.ui.getFileAndType&amp;diff=4122&amp;oldid=prev</id>
		<title>Ed: Created page with &quot;== Signature: ==  &lt;syntaxhighlight lang=&quot;python&quot;&gt; dabo.ui.getFileAndType(*args, **kwargs) &lt;/syntaxhighlight&gt;  Additionally, you can pass Keyword args: &#039;&#039;&#039;message=&#039;&#039;&#039; Text stri...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dabo.leafe.com/index.php?title=Dabo.ui.getFileAndType&amp;diff=4122&amp;oldid=prev"/>
		<updated>2020-05-13T20:37:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Signature: ==  &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt; dabo.ui.getFileAndType(*args, **kwargs) &amp;lt;/syntaxhighlight&amp;gt;  Additionally, you can pass Keyword args: &amp;#039;&amp;#039;&amp;#039;message=&amp;#039;&amp;#039;&amp;#039; Text stri...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Signature: ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
dabo.ui.getFileAndType(*args, **kwargs)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additionally, you can pass Keyword args:&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;message=&amp;#039;&amp;#039;&amp;#039; Text string to use as the prompt (title of the dialog window).&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;defaultPath=&amp;#039;&amp;#039;&amp;#039; Directory to use as the starting place for file dialog.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;multiple=True&amp;#039;&amp;#039;&amp;#039; Allows the selection of multiple files.&lt;br /&gt;
&lt;br /&gt;
== Description: ==&lt;br /&gt;
Displays the file selection dialog for the platform.&lt;br /&gt;
&lt;br /&gt;
== Returns: ==&lt;br /&gt;
Returns a 2-tuple, with the first element being the path to the selected file, and the second being the type of file chosen by the user. If no selection was made, returns (&amp;lt;code&amp;gt;None&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;None&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== Comments: ==&lt;br /&gt;
See &amp;lt;code&amp;gt;dabo.ui.getFile()&amp;lt;/code&amp;gt; for a more complete description of this function. The only difference between &amp;lt;code&amp;gt;getFileAndType()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;getFile()&amp;lt;/code&amp;gt; is that this function returns the file type selected by the user in addition to the path. So if this function was called as &amp;lt;code&amp;gt;dabo.ui.getFileAndType(&amp;quot;py&amp;quot;, &amp;quot;txt&amp;quot;)&amp;lt;/code&amp;gt;, and the user chose the &amp;lt;code&amp;gt;Text&amp;lt;/code&amp;gt; file option in the file dialog, the function will return &amp;lt;code&amp;gt;(&amp;lt;file path&amp;gt;, &amp;quot;txt&amp;quot;)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples: ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
dabo.ui.getFile(&amp;quot;*&amp;quot;, defaultPath=&amp;quot;.&amp;quot;)  # Displays all files in current directory.&lt;br /&gt;
dabo.ui.getFile(&amp;quot;py&amp;quot;, &amp;quot;*&amp;quot;)  # Displays either just Python scripts, or all files.&lt;br /&gt;
dabo.ui.getFile(&amp;quot;png&amp;quot;, &amp;quot;jpg&amp;quot;, &amp;quot;gif&amp;quot;)  #Allows the user to select from any of these three graphic formats.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ed</name></author>
	</entry>
</feed>