×

Discussion Board

Search:

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

Search: Search took 0.01 seconds.

  1. Re: Preventing Red (end/close) button from exiting python?

    I can see that the atexit.register() which is the successor of the sys.exitfunc, is also ignored - python just closes at the red button press...

    I've been testing with this piece of code, which...
  2. Re: Preventing Red (end/close) button from exiting python?

    Thanks - I took a look at the sys.exitfunc - but it seems like it is just ignored, both when using the supplied examples, and making my own print "hello" function. Python just exits instantly at the...
  3. Preventing Red (end/close) button from exiting python?

    Hello

    I've made an app that needs to do some operations (like flushing open files etc) when closing. If not, it may produce corrupted data.

    Therefore, i want to prevent the red "End call"...
  4. Replies
    2
    Views
    3,556

    Re: Hide/disable appuifw.Form after saving

    Yeah but the problem is that the form is not an appuifw body, it is an independent UI control. Så I can't just set the appuifw body to the form, and then back to the original body on save. I just...
  5. Replies
    2
    Views
    3,556

    Hide/disable appuifw.Form after saving

    Hello

    I've made an app that displays some forms to the user, and calls some validation/processing, when the user clicks Save.
    When the processing have been done, I'd like the form to close...
  6. Re: Can I check if my app is minimized? (out of focus)

    Thanks! Seems like the stuff i was looking for! I wonder how I could have overlooked this function if appuifw :-)
  7. Can I check if my app is minimized? (out of focus)

    Hello

    Are there any ways to check if my PyS60 application using appuifw, is shown in the display at the moment?

    I want to detect if a user has minimized my program for doing something else, so...
  8. Re: How to interrupt ongoing calculations when new callback comes?

    I've made this function, to filter between the calls to data_callback, and the calls from compass_callback and acc_callback.

    But no matter what I do, it still runs on every request, even though I...
  9. Re: How to interrupt ongoing calculations when new callback comes?

    Here is some code.

    The self.data_callback() does a lot of stuff, and searches through a large data structure, based on the values from the accelerometer. It seems that the calls to...
  10. How to interrupt ongoing calculations when new callback comes?

    Hello

    I have a program that gets data from the accelerometer. Every time the phone is moved above a certain limit, the accelerometer calls the callback function, and it calculates some data and...
  11. Replies
    4
    Views
    4,412

    Re: Listbox makes callback as soon as created

    Thanks :) I'll take a look at it.

    Where do I find the keyboard scancodes, like you used 167 for the Select button?

    edit: found these:...
  12. Replies
    4
    Views
    4,412

    Listbox makes callback as soon as created

    Hello

    I've made a program that displays some graphics to the user, through an appuifw.Canvas().

    I've assigned a key event to the Select key, which makes the GUI change to a listbox. But as soon...
  13. Re: How to make a class destroy itself and call a function from parent? if possible

    I think i'll just do the stuff in the returnToSelection function and then pass it as a parameter to ServiceHandler so it's accessible from within the class.
  14. How to make a class destroy itself and call a function from parent? if possible

    Hello

    I have a script that lets the user select a services from a list. When selected, an instance of a "ServiceHandler" class is created, which does the service interaction.
    When the user is...
  15. Replies
    3
    Views
    3,297

    Where's the PyS60 1.9.6?

    I'm disappointed that it's not in the maemo garage yet :-(

    They used to ship every 24th of the month, except for 25 of may but now they seem to be further delayed?
  16. Re: appuifw.Form.save_hook - how to pass parameters to function?

    I fixed it like this:



    form=appuifw.Form(formdata,appuifw.FFormEditModeOnly)
    form.save_hook=makeFormLambda(content,submethod)
    form.execute()


    def...
  17. appuifw.Form.save_hook - how to pass parameters to function?

    Hello

    I recenty asked about how to use the same function as callback for all menu items in appuifw.app.menu, and got a very nice solution with making som lambda function and refering to that....
  18. appuifw.app.menu - how to avoid making dedicated functions for each item?

    Hello. I'm getting data from an external source and would like to build up a menu using that, with an unknown number of items, each which should ideally call the same function with different...
  19. Replies
    69
    Views
    18,955

    Re: PyS60[1.9.4] Tests and Feedback

    The scriptext doesn't seem to work properly.

    Tested on a 6210 navigator, and N96. By installing Python_1.9.4.sis and PythonScriptShell_1.9.4_5thEd.sis - tested both with installation on C and E...
  20. Re: Selecting access point in 1.9.2 with socket module?

    I've got a related problem, I want to get data from a http URL using urllib - but even though i do the btsocket.set_default_acces_point() etc. it keeps asking me every time i run the script that uses...
  21. Replies
    9
    Views
    6,334

    Re: Vibration for PyS60 1.9.3 on 3rd FP2 ? (miso?)

    Rafael T.: As I wrote, MISO 1.9.6 works with PyS60 1.4.5
    ashwinurao: Thanks - i guess I'll contact the developer, or look for the source code...
  22. Replies
    9
    Views
    6,334

    Vibration for PyS60 1.9.3 on 3rd FP2 ? (miso?)

    Hello

    I'm developing some software for some FP2 phones, like N96 and 6210 navigator. Since the sensors framework is only supported by PyS60 1.9.3, I'm using that one ATM.

    I'm looking for a way...
  23. Replies
    2
    Views
    6,245

    Re: PyS60 1.9.4 feature request

    I agree - let's have both a PDF and HTML version...

    It would also be nice to have the HTML version online somewhere, making it easier to refer to specific pages by copying hyperlinks
Results 1 to 23 of 23