Okay. So the PC can be running a web server 24/7, but the phone presumably cannot, so it sounds like the phone will have to initiate the communication. In which case, the phone doesn't really need to...
Type: Posts; User: aya42; Keyword(s):
Okay. So the PC can be running a web server 24/7, but the phone presumably cannot, so it sounds like the phone will have to initiate the communication. In which case, the phone doesn't really need to...
Ah. Sounds like you're using a really old version.
#3 on the list is redundant, and has no effect on the emulator.
If you're developing for S60 2nd Edition FP2, you'll need #1, and...
You need to articulate your problem better. Try to describe what you're trying to achieve, not only from a technical standpoint, but also from the point-of-view of a non-technical user.
You haven't specified which PyS60 version you're using, but you specified it was based on a Python v2.5 core, which suggests one of the 1.9.x releases.
May I suggest avoiding beta versions 1.9.x,...
Use the 'btsocket' module rather than the 'socket' module for bluetooth support.
I'm not sure I understand. If you want to generate a fixed char* buffer with the code, and then execute it, I don't see where the 'passing parameters' applies.
Unless you mean you want the Python...
Do you mean you want to import a module, then call a function from that module? If so, you want something like...
Py_Initialize();
PyObject* module = PyImport_ImportModule("mymodule");...
These are just general game design principles, not specific to Python. When you want to render a game with a high framerate, you need to ensure that each frame can be generated as quickly as...
Would help if you could post some example code which demonstrates the problem.
Well, you could cut it down to a single blit by pre-compositing a double-sized version.
back = Image.open("E:\\back2.png")
w, h = back.size
dblBack = Image.new((w*2, h), 'RGB')...
If you're not using an offscreen buffer, you'll get a noticeable flickering effect. Try something like this:
# Build offscreen buffer
buffer = graphics.Image.new(canvas.size, 'RGB')
# Main...
[x]*n will create 'n' copies of 'x' if 'x' is of an immutable type, or 'n' references to 'x' if 'x' is of a mutable type.
Immutable types include: boolean, complex, float, int, long, none, string,...
Problem is that urllib imports the socket module, not the btsocket module, so you'll have to ensure that sys.modules['socket'] points to the btsocket module before importing urllib.
This should...
Put this at the top of the default.py script...
import sys, os
try:
raise Exception
except Exception:
mydir = os.path.dirname(sys.exc_info()[2].tb_frame.f_code.co_filename)
if not...
This should work on 1.4.x and 1.9.x...
import sys
try:
sys.modules['socket'] = __import__('btsocket')
except ImportError:
pass
import socket
Note that the line...
...should probably be...
f = open("C:\\log.txt", 'a')
Be more specific about what you want the keys to do. By default, when the appuifw.app.body is set to a appuifw.Text instance, the phone keys will allow you to edit the text. If you want them to do...
Have you tried PyS60 v1.4.5?
===============================================
Python for S60 1.9.0 RELEASE NOTES, 24.12.2008
===============================================
...
Known issues
============
1. Problem with...
Presumably you're trying to view the result in a browser, which is trying to interpret the XML tags as HTML tags. Try sending it back as a plain text response...
def handler(req):
import os...
You could've simplified the code required to reproduce the problem to just...
print """table is big
cat is gress
I like icecream
...snip...
her father and helped edit his works.
major...
That's because your main loops exits as soon as the key is pressed. You're also using a lot of busy loops, which seriously drain the battery.
Try...
import e32, appuifw, time
canvas = None...
Some are in key_codes.py. The others you'll have to work out by building a small program which creates a Canvas with an event_callback, and printing out the codes that the function receives.
For...
I can't really tell from such a vague description. It would help if you could post a minimal code example which would allow others to reproduce the problem.
Since it's an unrelated problem, you should create a new thread.
I'm not certain what you mean. Try creating a minimal code example which demonstrates the problem, and post it in a new...