<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Nokia Developer Community - Discussions - Python</title>
		<link>http://www.developer.nokia.com/Community/Discussion/</link>
		<description />
		<language>en</language>
		<lastBuildDate>Fri, 24 May 2013 04:14:35 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.developer.nokia.com/Community/Discussion/images/misc/rss.png</url>
			<title>Nokia Developer Community - Discussions - Python</title>
			<link>http://www.developer.nokia.com/Community/Discussion/</link>
		</image>
		<item>
			<title>btsocket - bluetooth</title>
			<link>http://www.developer.nokia.com/Community/Discussion/showthread.php?240304-btsocket-bluetooth&amp;goto=newpost</link>
			<pubDate>Fri, 10 May 2013 16:57:01 GMT</pubDate>
			<description>Hi all! 
I am just started learning Pythos S60 and have a problem with btsocket. 
I need to connect 2 phones using BT: first as a server and second as a client to send data between them 
When I tried to google how to use btsocket I found only that:...</description>
			<content:encoded><![CDATA[<div>Hi all!<br />
I am just started learning Pythos S60 and have a problem with btsocket.<br />
I need to connect 2 phones using BT: first as a server and second as a client to send data between them<br />
When I tried to google how to use btsocket I found only that:<br />
<a href="http://pys60.garage.maemo.org/doc/s60/module-btsocket.html" target="_blank">http://pys60.garage.maemo.org/doc/s60/module-btsocket.html(no examples for bluetooth)</a><br />
and <a href="http://www.mobilenin.com/mobilepythonbook/examples/057-btchat.py" target="_blank">http://www.mobilenin.com/mobilepythonbook/examples/057-btchat.py(doesn't work)</a><br />
So how can I connect two phones and transfer data between them via BT?<br />
Please help<br />
<br />
P.S. Sorry for my English</div>

]]></content:encoded>
			<category domain="http://www.developer.nokia.com/Community/Discussion/forumdisplay.php?102-Python">Python</category>
			<dc:creator>Grom_oleg</dc:creator>
			<guid isPermaLink="true">http://www.developer.nokia.com/Community/Discussion/showthread.php?240304-btsocket-bluetooth</guid>
		</item>
		<item>
			<title>PyS60 - How To Create Submenu Inside Submenu?</title>
			<link>http://www.developer.nokia.com/Community/Discussion/showthread.php?240148-PyS60-How-To-Create-Submenu-Inside-Submenu&amp;goto=newpost</link>
			<pubDate>Mon, 29 Apr 2013 01:57:39 GMT</pubDate>
			<description><![CDATA[Hello Forum. 
I've been searching everywhere with no luck. 
I need a solution for my problem. 
Everywhere I read tutorials about  creating 'menu' (appuifw.app.menu) in Python S60,  
there is only one example for creating submenu inside main menu, 
and no submenu inside submenu, even in the official...]]></description>
			<content:encoded><![CDATA[<div>Hello Forum.<br />
I've been searching everywhere with no luck.<br />
I need a solution for my problem.<br />
Everywhere I read tutorials about  creating 'menu' (appuifw.app.menu) in Python S60, <br />
there is only one example for creating submenu inside main menu,<br />
and no submenu inside submenu, even in the official documentation for Python S60 v.2.0.0.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			menu<br />
    This is a list of the following kinds of items:<br />
	•(title, callback) which creates a regular menu item<br />
	•(title, ((title, callback) [ ... ] )) which creates a submenu<br />
	<br />
title (Unicode) is the name of the item and callback the associated callable object. <br />
The maximum allowed number of items in a menu, or items in a submenu, <br />
or submenus in a menu is 30.<br />
Example:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">appuifw.app.menu = [(u&quot;Item 1&quot;, item1),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (u&quot;Submenu 1&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ((u&quot;Subitem 1&quot;, subitem1),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  (u&quot;Subitem 2&quot;, subitem2)))]</code><hr />
</div>
			
		<hr />
	</div>
</div><br />
The screenshot below was taken from &quot;<a href="http://www.developer.nokia.com/info/sw.nokia.com/id/5d967f6a-5ca5-48bc-8dbf-1d91207217a0/Symbian_FileBrowser.html" target="_blank">Symbian FileBrowser</a>&quot; program:<br />
<br />
<img src="http://freezone.web.id/img/Submenu-inside-submenu.jpg" border="0" alt="" /><br />
<br />
I want a menu like that, submenu inside submenu.<br />
But no guide is available on how to create submenu inside submenu.<br />
<b>Is it can be done in Python S60, OR I had to do it in C++</b>?<br />
<br />
I hope my question is clear enough.<br />
<br />
And here is an example of my code, <br />
of course  it's only create a submenu inside MAIN menu, <br />
NOT submenu inside submenu.<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">import appuifw<br />
import e32<br />
<br />
def nothing_to_do():<br />
&nbsp; &nbsp; pass<br />
<br />
def bye():<br />
&nbsp; &nbsp; start.signal()<br />
<br />
appuifw.app.title = u'SUBMENU'<br />
appuifw.app.exit_key_handler = bye<br />
<br />
appuifw.app.menu = [<br />
&nbsp; &nbsp; (u'MENU1',<br />
&nbsp; &nbsp;  ((u'SUB1', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'SUB2', nothing_to_do))),<br />
&nbsp; &nbsp; (u'MENU2',<br />
&nbsp; &nbsp;  ((u'SUBmenu1', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Submenu2', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Submenu3', nothing_to_do))),<br />
&nbsp; &nbsp; (u'MENU3',<br />
&nbsp; &nbsp;  ((u'Sub1', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub2', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub3', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub4', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub5', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub6', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub7', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub8', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub9', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub10', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub11', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub12', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub13', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub14', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub15', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub16', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub17', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub18', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub19', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub20', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub21', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub22', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub23', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub24', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub25', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub26', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub27', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub28', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub28', nothing_to_do),<br />
&nbsp; &nbsp; &nbsp; (u'Sub29', nothing_to_do))),<br />
&nbsp; &nbsp; (u'MENU4', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU5', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU6', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU7', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU8', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU9', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU10', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU11', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU12', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU13', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU14', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU15', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU16', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU17', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU18', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU19', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU20', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU21', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU22', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU23', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU24', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU25', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU26', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU27', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU28', nothing_to_do),<br />
&nbsp; &nbsp; (u'MENU29', nothing_to_do),<br />
&nbsp; &nbsp; (u'EXIT', bye)<br />
]<br />
<br />
start = e32.Ao_lock()<br />
start.wait()</code><hr />
</div>Any help will be greatly appreciated.<br />
Thank you.</div>

]]></content:encoded>
			<category domain="http://www.developer.nokia.com/Community/Discussion/forumdisplay.php?102-Python">Python</category>
			<dc:creator>bu9traq</dc:creator>
			<guid isPermaLink="true">http://www.developer.nokia.com/Community/Discussion/showthread.php?240148-PyS60-How-To-Create-Submenu-Inside-Submenu</guid>
		</item>
		<item>
			<title><![CDATA[How can I Close globalui.global_note(u"Permanent note", 'perm')??]]></title>
			<link>http://www.developer.nokia.com/Community/Discussion/showthread.php?240140-How-can-I-Close-globalui-global_note(u-quot-Permanent-note-quot-perm-)&amp;goto=newpost</link>
			<pubDate>Sat, 27 Apr 2013 10:40:26 GMT</pubDate>
			<description><![CDATA[Hello Forum. 
I am just started learning Python S60 and currently have a little problem. 
When I am trying to know what 'globalui' module can do,  
and I am typing this code in the interactive console: 
 
 
Code: 
--------- 
import globalui 
globalui.global_note(u"Permanent note", 'perm')]]></description>
			<content:encoded><![CDATA[<div>Hello Forum.<br />
I am just started learning Python S60 and currently have a little problem.<br />
When I am trying to know what 'globalui' module can do, <br />
and I am typing this code in the interactive console:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">import globalui<br />
globalui.global_note(u&quot;Permanent note&quot;, 'perm')</code><hr />
</div>Like what it said, permanent note appears on my phone screen.<br />
HOW to close the note from globalui.global_note???<br />
<br />
Is turning off the phone only the one solution?<br />
<br />
:rolleyes:<br />
<br />
Thank you.<br />
Appologies for not well writen language.<br />
I am using google translate.<br />
<br />
:)</div>

]]></content:encoded>
			<category domain="http://www.developer.nokia.com/Community/Discussion/forumdisplay.php?102-Python">Python</category>
			<dc:creator>bu9traq</dc:creator>
			<guid isPermaLink="true">http://www.developer.nokia.com/Community/Discussion/showthread.php?240140-How-can-I-Close-globalui-global_note(u-quot-Permanent-note-quot-perm-)</guid>
		</item>
	</channel>
</rss>
