<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sugarlabs.org/index.php?action=history&amp;feed=atom&amp;title=Activity_Team%2FControl_Panel</id>
	<title>Activity Team/Control Panel - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sugarlabs.org/index.php?action=history&amp;feed=atom&amp;title=Activity_Team%2FControl_Panel"/>
	<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activity_Team/Control_Panel&amp;action=history"/>
	<updated>2026-04-10T23:09:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Activity_Team/Control_Panel&amp;diff=52219&amp;oldid=prev</id>
		<title>Walter: Created page with &#039;There are several things to keep in mind when adding a new section to the Sugar Control panel.  * Add you code to sugar/extensions/cpsection in a subdirectory specific to your se...&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Activity_Team/Control_Panel&amp;diff=52219&amp;oldid=prev"/>
		<updated>2010-05-20T12:25:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;There are several things to keep in mind when adding a new section to the Sugar Control panel.  * Add you code to sugar/extensions/cpsection in a subdirectory specific to your se...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are several things to keep in mind when adding a new section to the Sugar Control panel.&lt;br /&gt;
&lt;br /&gt;
* Add you code to sugar/extensions/cpsection in a subdirectory specific to your section&lt;br /&gt;
* Make sure to add your new section to sugar/extensions/cpsection/Makefile.am&lt;br /&gt;
* Make sure to add your new section to sugar/configure.ac&lt;br /&gt;
* Put the icon for your section in sugar/data/icons&lt;br /&gt;
* Make sure to add your icon to sugar/data/icons/Makefile.am&lt;br /&gt;
&lt;br /&gt;
Your section subdirectory should contain a minimum of four files:&lt;br /&gt;
&lt;br /&gt;
* Makefile.am&lt;br /&gt;
* __init__.py&lt;br /&gt;
* view.py&lt;br /&gt;
* model.py&lt;br /&gt;
&lt;br /&gt;
__init__.py should contain CLASS, ICON, TITLE, and KEYWORDS&lt;br /&gt;
    CLASS = &amp;#039;Touchpad&amp;#039;&lt;br /&gt;
    ICON = &amp;#039;module-touchpad&amp;#039;&lt;br /&gt;
    TITLE = _(&amp;#039;Touchpad&amp;#039;)&lt;br /&gt;
    KEYWORDS = [&amp;#039;touchpad&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
If you want to make the appearance of section conditional, for example, for a specific hardware architecture, then simply add a conditional as per:&lt;br /&gt;
&lt;br /&gt;
 if path.exists(&amp;#039;/sys/devices/platform/i8042/serio1/ptmode&amp;#039;):&lt;br /&gt;
    CLASS = &amp;#039;Touchpad&amp;#039;&lt;br /&gt;
    ICON = &amp;#039;module-touchpad&amp;#039;&lt;br /&gt;
    TITLE = _(&amp;#039;Touchpad&amp;#039;)&lt;br /&gt;
    KEYWORDS = [&amp;#039;touchpad&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
In the above example, the path only exists for OLPC XO-1 CL1 hardware, which is the only hardware for which this particular section is relevant.&lt;/div&gt;</summary>
		<author><name>Walter</name></author>
	</entry>
</feed>