×

Discussion Board

Search:

Type: Posts; User: aya42; Keyword(s):

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: About sockets

    by aya42
    Replies
    15
    Views
    7,837

    Re: About sockets

    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...
  2. Replies
    8
    Views
    4,511

    Re: Simple Error with socket

    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...
  3. Thread: About sockets

    by aya42
    Replies
    15
    Views
    7,837

    Re: About sockets

    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.
  4. Replies
    8
    Views
    4,511

    Re: Simple Error with socket

    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,...
  5. Replies
    8
    Views
    4,511

    Re: Simple Error with socket

    Use the 'btsocket' module rather than the 'socket' module for bluetooth support.
  6. Replies
    3
    Views
    3,984

    Re: Embedding Pyhton in C++

    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...
  7. Replies
    3
    Views
    3,984

    Re: Embedding Pyhton in C++

    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");...
  8. Replies
    7
    Views
    5,763

    Re: Canvas.blit problem

    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...
  9. Replies
    2
    Views
    2,425

    Re: Using number keys on nokia n95

    Would help if you could post some example code which demonstrates the problem.
  10. Replies
    7
    Views
    5,763

    Re: Canvas.blit 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')...
  11. Replies
    7
    Views
    5,763

    Re: Canvas.blit problem

    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...
  12. Replies
    6
    Views
    7,426

    Re: Common python question about lists

    [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,...
  13. Re: Selecting access point in 1.9.2 with socket module?

    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...
  14. Replies
    7
    Views
    4,767

    Re: How to import my own modules

    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...
  15. Replies
    14
    Views
    9,448

    Re: Python able to access Wifi?

    This should work on 1.4.x and 1.9.x...



    import sys
    try:
    sys.modules['socket'] = __import__('btsocket')
    except ImportError:
    pass
    import socket
  16. Re: How to log the print statement and error messges in PyS60?

    Note that the line...



    ...should probably be...



    f = open("C:\\log.txt", 'a')
  17. Replies
    10
    Views
    5,089

    Re: keycodes on text mode of body.

    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...
  18. Thread: Type problem?

    by aya42
    Replies
    9
    Views
    5,691

    Re: Type problem?

    Have you tried PyS60 v1.4.5?
  19. Thread: Type problem?

    by aya42
    Replies
    9
    Views
    5,691

    Re: Type problem?

    ===============================================
    Python for S60 1.9.0 RELEASE NOTES, 24.12.2008
    ===============================================

    ...

    Known issues
    ============
    1. Problem with...
  20. Replies
    13
    Views
    6,838

    Re: How to read from a file

    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...
  21. Replies
    2
    Views
    4,190

    Re: printing big text fields from database

    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...
  22. Replies
    2
    Views
    5,316

    Re: Capture Dwell Time for Key Press (Nokia n73)

    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...
  23. Replies
    3
    Views
    5,172

    Re: key_codes for qwerty keys

    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...
  24. Replies
    13
    Views
    6,838

    Re: How to read from a file

    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.
  25. Replies
    15
    Views
    7,692

    Re: problem loading big txt file into a database

    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...
Results 1 to 25 of 125
Page 1 of 5 1 2 3 4
×