<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=App_FeaturePython</id>
	<title>App FeaturePython - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=App_FeaturePython"/>
	<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=App_FeaturePython&amp;action=history"/>
	<updated>2026-05-15T18:40:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=App_FeaturePython&amp;diff=2052&amp;oldid=prev</id>
		<title>LabRPS: Created page with &quot;{{TOCright}}  == Introduction ==   An 32px App FeaturePython object, or formally an {{incode|App::FeaturePython}}, is a simple instance of the App DocumentObject in Python.  This is a simple object that by default doesn&#039;t have many properties, Depending on the properties that are assigned to it, it can be used to manage different types of data.  800px  {{Captio...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=App_FeaturePython&amp;diff=2052&amp;oldid=prev"/>
		<updated>2024-10-28T15:49:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{TOCright}}  == Introduction ==   An &lt;a href=&quot;/File:Feature.svg&quot; title=&quot;File:Feature.svg&quot;&gt;32px&lt;/a&gt; &lt;a href=&quot;/App_FeaturePython&quot; title=&quot;App FeaturePython&quot;&gt;App FeaturePython&lt;/a&gt; object, or formally an {{incode|App::FeaturePython}}, is a simple instance of the &lt;a href=&quot;/App_DocumentObject&quot; title=&quot;App DocumentObject&quot;&gt;App DocumentObject&lt;/a&gt; in &lt;a href=&quot;/Python&quot; title=&quot;Python&quot;&gt;Python&lt;/a&gt;.  This is a simple object that by default doesn&amp;#039;t have many properties, Depending on the properties that are assigned to it, it can be used to manage different types of data.  &lt;a href=&quot;/File:LabRPS_core_objects.svg&quot; title=&quot;File:LabRPS core objects.svg&quot;&gt;800px&lt;/a&gt;  {{Captio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
== Introduction == &lt;br /&gt;
&lt;br /&gt;
An [[Image:Feature.svg|32px]] [[App_FeaturePython|App FeaturePython]] object, or formally an {{incode|App::FeaturePython}}, is a simple instance of the [[App_DocumentObject|App DocumentObject]] in [[Python|Python]].&lt;br /&gt;
&lt;br /&gt;
This is a simple object that by default doesn&amp;#039;t have many properties, Depending on the properties that are assigned to it, it can be used to manage different types of data.&lt;br /&gt;
&lt;br /&gt;
[[Image:LabRPS_core_objects.svg|800px]]&lt;br /&gt;
&lt;br /&gt;
{{Caption|Simplified diagram of the relationships between the core objects in LabRPS}}&lt;br /&gt;
&lt;br /&gt;
== Usage == &lt;br /&gt;
&lt;br /&gt;
The [[App_FeaturePython|App FeaturePython]] is an internal object, so it cannot be created from the graphical interface. It is meant to be sub-classed by classes that will handle different types of data.&lt;br /&gt;
&lt;br /&gt;
== Properties == &lt;br /&gt;
&lt;br /&gt;
See [[Property|Property]] for all property types that scripted objects can have.&lt;br /&gt;
&lt;br /&gt;
The [[App_FeaturePython|App FeaturePython]] ({{incode|App::FeaturePython}} class) is derived from the basic [[App_DocumentObject|App DocumentObject]] ({{incode|App::DocumentObject}} class) and inherits all its properties. It also has several additional properties.&lt;br /&gt;
&lt;br /&gt;
These are the properties available in the [[Property_editor|property editor]]. Hidden properties can be shown by using the {{MenuCommand|Show all}} command in the context menu of the [[Property_editor|property editor]].&lt;br /&gt;
&lt;br /&gt;
=== Data === &lt;br /&gt;
&lt;br /&gt;
{{TitleProperty|Base}}&lt;br /&gt;
&lt;br /&gt;
* {{PropertyData|Proxy|PythonObject|Hidden}}: a custom class associated with this object.&lt;br /&gt;
* {{PropertyData|Label|String}}: the user editable name of this object, it is an arbitrary UTF8 string.&lt;br /&gt;
* {{PropertyData|Label2|String|Hidden}}: a longer, user editable description of this object, it is an arbitrary UTF8 string that may include newlines. By default, it is an empty string {{value|&amp;quot;&amp;quot;}}.&lt;br /&gt;
* {{PropertyData|Expression Engine|ExpressionEngine|Hidden}}: a list of expressions. By default, it is empty {{value|[]}}.&lt;br /&gt;
* {{PropertyData|Visibility|Bool|Hidden}}: whether to display the object or not.&lt;br /&gt;
&lt;br /&gt;
=== View === &lt;br /&gt;
&lt;br /&gt;
{{TitleProperty|Base}}&lt;br /&gt;
&lt;br /&gt;
* {{PropertyView|Proxy|PythonObject|Hidden}}: a custom [[Viewprovider|viewprovider]] class associated with this object.&lt;br /&gt;
&lt;br /&gt;
{{TitleProperty|Display Options}}&lt;br /&gt;
* {{PropertyView|Display Mode|Enumeration}}: it is empty by default.&lt;br /&gt;
* {{PropertyView|Show In Tree|Bool}}: it defaults to {{TRUE}}, in which case the object will appear in the [[Tree_view|Tree view]]; otherwise, the object will be hidden in the tree view. Once an object in the tree is invisible, you can see it again by opening the context menu over the name of the document (right-click), and selecting {{CheckBox|TRUE|Show hidden items}}. Then the hidden item can be chosen and {{PropertyView|Show In Tree}} can be switched back to {{TRUE}}.&lt;br /&gt;
* {{PropertyView|Visibility|Bool}}: it defaults to {{TRUE}}, in which case the object will be visible in the [[Tree_view|tree view]]. By default this property can be toggled on and off by selecting the object, and pressing the {{KEY|Space}} bar.&lt;br /&gt;
&lt;br /&gt;
== Scripting == &lt;br /&gt;
&lt;br /&gt;
{{Emphasis|See also:}} [[LabRPS_Scripting_Basics|LabRPS Scripting Basics]] and [[Scripted_objects|scripted objects]].&lt;br /&gt;
&lt;br /&gt;
An App FeaturePython is created with the {{incode|addObject()}} method of the document.&lt;br /&gt;
&lt;br /&gt;
{{Code|code=&lt;br /&gt;
import LabRPS as App&lt;br /&gt;
&lt;br /&gt;
doc = App.newDocument()&lt;br /&gt;
obj = App.ActiveDocument.addObject(&amp;quot;App::FeaturePython&amp;quot;, &amp;quot;Name&amp;quot;)&lt;br /&gt;
obj.Label = &amp;quot;Custom label&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Document_objects_navi}}&lt;br /&gt;
{{Userdocnavi}}&lt;/div&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
</feed>