If you're adding the items to the menu in a loop and using lambda, you might get some problems.
def callback(n):
print n
menu = []
items = [1,2,3,4,5]
for item in items:
Type: Posts; User: RICH?; Keyword(s):
If you're adding the items to the menu in a loop and using lambda, you might get some problems.
def callback(n):
print n
menu = []
items = [1,2,3,4,5]
for item in items:
Yes, I also thought that end users will be really frustrated if even every low grade apps get in to the store.
The publisher needs to take the responsibility of delivering a fit product.
I should...
Hi
I would really like support for python apps in the appstore but as pointed out there are some issues.
However PyS60 is a really great opportunity for developing apps because its easy to learn...
Wow, thats great :).
time.clock has an important role in my app and there is no alternative so its good to hear its being worked on.
-Rich
Sorry, I already got it fixed after all.
Apparently it was due to float values that I was using.
In anycase, I now use int values and have faced no problems.
Now I also found that time.clock()...
Hello!
For some reason using image.point doesn't work in Python 1.9.4.
It gives no errors but also produces no visible results on the image.
I tested the same script on 1.4.5 and it works fine...
Yeah, I agree. I own a E66 now which uses the sensor framework and I cant use the accelerometer because of this :(.
I hope sensor framework support is added soon.
Thanks for the tip :).
If I only want for instance precision of 2 decimals I guess I could do this:
If the user is at coordinates 5,5 they would be stored as 500,500 and then divided by 100...
Thanks for the info aapo :). I get it now. Sorry for comming to whine about it to the forum without any knowledge about the issue :o
But unfortunately my app requires more precision...
In my case...
Hello,
while developing an app I ran into a really weird problem.
The problem is in python itself.
Check out the following code:
x=0.0
for i in range(60) # Increment x with 0.1 60 times.
Hi,
Dont remember why but I read somewhere here that pyexpat needs some special capabilities... I'll try to find the thread.. :cool:
ok got it:
here's the complete thread:...
it will also work without the import with:
15/100.0
:)
There is nothing built in but it is relatively easy to make your own function to do this. You only need to know the coordinate of the given point and the coordinates of the rectangle.
def...
Actually they are accessible! :) I used to own an N81 and frequently used those keys in my apps.
I don't remember the key codes but I found them with keywviewer.py:
#
# keyviewer.py
#
#...
Ok,the problem is definitely the way my wlan works, I'll see how to change the settings later.
I connected my phone to my laptop by bluetooth so that I could use the net on the pc. Then I ran the...
Thanks for the info jethro.fn :) I'll check what I can try to do about it :).
To be continued...
Hi. The problem seems similar to mine. I posted about it here: http://discussion.forum.nokia.com/forum/showthread.php?t=141412
I hope a solution is found.
Hello,
I just got a new phone (E66). I tried to create a TCP/IP socket in python between the phone and my pc.
I am using the TCP/IP examples here:...
Thanks for your replies :)
Yes, I've been trying examples too but I alwas get stuck somewhere. I think there should be a smiple example in the wiki about this. But not too simple ;). If anyone has...
Hello,
I'm trying to do some bt socket programming for a simple project of mine.
What I want to accomplish is a a server and a client script that can talk to each other wirelessly via a...
I agree :)
I would like if when saving a python file it would only ask for the filename without the extension. But when handling a text file the extension would be there too, and it could be...
Oops, it does the same on my phone too :( sorry, I dont know why.
Best Regards
Richard
Hello,
Actually, since the line that you need to add just defines a new variable, you can write it straight into your script:
from key_codes import *
import keypress
EKeyPowerOff = 63556...
I think you got the link wrong :D
I found this a while ago http://snippets.dzone.com/posts/show/3109 :)
Maby that could be used :)
Yes, where can I get them and are they free? :D
I'm also intrested in making one for the N81 and make use of its NaviWheel (you can spin your thumb around the d-pad to scroll in some menus) but...