
-
brumm
class MyButtonClass(ui.View): def __init__(self, x, y, height, width): self.x = x self.y = y self.height = height self.width = width class SpecialButton(object): def __init__(self): self.view = ui.View() self.view.present('fullscreen') self.btn = MyButtonClass(100, 100, 100, 100) self.btn2 = MyButtonClass(200, 100, 100, 100) self.view.add_subview(self.btn) self.view.add_subview(self.btn2)
-
-
brumm
import ui import time from random import choice class myclass(): def __init__(self): #self.v = ui.load_view('UIwithOtherName.pyui') self.v = ui.load_view() self.v.present('sheet') self.v.name = 'goapp' self.intro() self.key() def intro(self): self.v['textfield1'].text = "The Guitar Oracle is listening." time.sleep(2) def key(self): self.v['textfield1'].text = "Good bye." myclass()
-
brumm
@cvp When you use smb.SMBConnection it is a synchronous connection and you can send only one command after another. So it shouldn't be necessary to flush the buffer, but there could be a small gap until the cache of the router is empty. However I'm not an expert, so I would still recommend to use an USB key with a LED.
-
brumm
@cvp I guess that your internet router has no (or a small) read/write buffer. Before you lose data I would recommend to use a USB key with a LED, to get sure that your router has enough time to write all data.
-
brumm
So you are recording ~10GB data each day!? 10ms * 40bytes * 3 sensors * 100 = 117kB/s * 86400s = 9,66GB/d => Sorry I'm curious, what will you do with this huge amount of data? For processing you probably like to switch to another platform...
-
brumm
@cvp Please feel free to upload it to your own github site, if you like. It's okay for me.
-
-
brumm
@cvp oh yes, this is my first try. I think it should be a good start. Let me know when I can support you. And I saw there's another dependency - pyasn1, but it is also python3 ready.
-
brumm
@cvp: My first library was pysmb, but then I switched to impacket, because of this issue. However it is fixed and pysmb is Python 3 ready. Of course you have to change the smb calls... Do you like to try it?