Python Geosystem / KML / Google Earth

2017-05-21 Thread Kasper Jepsen
of understanding the geo system, but also how to code it, what libraries are smartest to use etc. Hope you can help me in any direction :) /Kasper -- https://mail.python.org/mailman/listinfo/python-list

Hi! i need some help with a program in python on Raspberry pi3.

2017-04-14 Thread Kasper
every time i run the program i get this messeage: Traceback (most recent call last): File "smartmirror.py", line 159, in get_weather temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])), degree_sign) KeyError: 'currently' Error: 'currently'. Cannot get weather. How do i

Re: I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
Thanks! This helped me! -- https://mail.python.org/mailman/listinfo/python-list

I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
Hi! How can i make the score stop blinking and how can i make a high score table, in this game made with python? (this game is made on a Macbook) (there are some files in the game that i don't haven't copied into this file! like pyth.GIF)

COM Server - COMTYPES / PYTHONCOM

2016-07-18 Thread Kasper Jepsen
Hello all, I have some major problems with something i am not good at :( I have come to a situation where i have to add a COM server in my python code the get access to it from Labview Teststand. Firs i have tried with pythoncom/wincom and got it almost working, it registered and i could look

data visualization - graph

2015-07-15 Thread Kasper Jepsen
vice where i can select which data to see and compare and zoom in/ out etc. I like to do it in Python - but maybe some else also? Also i like as much as possible in some library / packages.. Any one who has experience? best regards /Kasper -- https://mail.python.org/mailman/listinfo/python-list

Re: PyEval_GetLocals and unreferenced variables

2014-12-03 Thread Kasper Peeters
ested function doesn't reference a given > variable in the outer function, it doesn't get passed in. Ok, that's good to know because it rules out doing this without having an explicit reference to the variable in the inner scope. Thanks. Cheers, Kasper -- https://mail.python.org/mailman/listinfo/python-list

Re: PyEval_GetLocals and unreferenced variables

2014-12-02 Thread Kasper Peeters
bject either, so it's kinda important to make the user feel 'at home'. Hope this makes it more clear, thanks for your patience. Cheers, Kasper -- https://mail.python.org/mailman/listinfo/python-list

Re: PyEval_GetLocals and unreferenced variables

2014-11-26 Thread Kasper Peeters
some completely different way to transfer > information around. Using locals in this way seems fraught with peril. There might very well be... Cheers, Kasper -- https://mail.python.org/mailman/listinfo/python-list

Re: PyEval_GetLocals and unreferenced variables

2014-11-26 Thread Kasper Peeters
am willing to elaborate on this if you want (I have fairly good reasons to do things this way, mostly having to do with historical constraints of an older C library that I cannot avoid), but it requires more space. Cheers, Kasper -- https://mail.python.org/mailman/listinfo/python-list

PyEval_GetLocals and unreferenced variables

2014-11-26 Thread Kasper Peeters
q=3 def fun2(): cfun() fun2() fun() and access 'q' inside the C-function cfun(). If I simply let it call PyEval_GetLocals, then the result will again not contain "q". Is there any way in which I can convince python to pull 'q' into the local

lambda - strange behavior

2013-09-20 Thread Kasper Guldmann
I was playing around with lambda functions, but I cannot seem to fully grasp them. I was running the script below in Python 2.7.5, and it doesn't do what I want it to. Are lambda functions really supposed to work that way. How do I make it work as I intend? f = [] for n in range(5): f.append(

Re: HID Feature Raport, Linux

2013-09-18 Thread Kasper Jepsen
summary of > > the alternatives at > > http://mcuee.blogspot.fi/2011/04/python-and-usb-hid-device.html if that > > helps. Hi, Thx, i have been looking at this... but could not fint the way to send feature reports, does anyone have an example? Kasper -- https://mail.python.org/mailman/listinfo/python-list

HID Feature Raport, Linux

2013-09-17 Thread Kasper Jepsen
without HID support? Br. Kasper -- https://mail.python.org/mailman/listinfo/python-list

Re: page faults when spawning subprocesses

2005-11-09 Thread Kasper Dupont
this in C, but I must admit, I don't know if it can be done in Python as well.) -- Kasper Dupont Note to self: Don't try to allocate 256000 pages with GFP_KERNEL on x86. -- http://mail.python.org/mailman/listinfo/python-list