Raspberry model b --> program

2014-11-08 Thread gm
Hi ! I have one small program that should be completed till tomorrow so if someone can help am ready to pay this ( btw. budget for this is $40 ). Project: - usb scanner is connected to the PI. - when the user gets his e.g. coffe bill with barcode, he put this bill in from of scanner and scann

Leo 5.0 alpha 2 released

2014-11-08 Thread edreamleo
Leo 5.0a2 is now available at: http://sourceforge.net/projects/leo/files/Leo/ Leo is a PIM, an IDE and an outliner. Video tutorials: http://leoeditor.com/screencasts.html Text tutorials: http://leoeditor.com/tutorial.html The highlights of Leo 5.0 -- * Better compatibilit

Re: How do i reduce this to a single function - the code is largely similar, just a direction of search toggle.

2014-11-08 Thread Ned Batchelder
On 11/7/14 9:52 AM, Veek M wrote: Veek M wrote: new_col = self.b[row].index('def') self.w.cursor = row, new_col new_col = self.b[row].rindex('def') self.w.cursor = row, new_col There's also the different methods index vs

Re: Moving a window on the screen

2014-11-08 Thread Akira Li
"ast" writes: > Ok, thx, it works now with: > > import tkinter > fen = tkinter.Tk() > > x=0 > > def moveW(): >global x >fen.geometry("200x200+%d+10" % x) >x = x + 10 >if (x < 1200): >fen.after(50, moveW) > > moveW() In general, to avoid the start time "drift" [1], you

Re: Moving a window on the screen

2014-11-08 Thread Terry Reedy
On 11/8/2014 11:35 AM, Akira Li wrote: "ast" writes: Ok, thx, it works now with: import tkinter fen = tkinter.Tk() x=0 def moveW(): global x fen.geometry("200x200+%d+10" % x) x = x + 10 if (x < 1200): fen.after(50, moveW) moveW() In general, to avoid the start t

Re: FYI: Micro Python running on kickstarter pyBoard project, now shipping

2014-11-08 Thread John Pinner
On Thursday, 23 October 2014 22:12:10 UTC+1, sohca...@gmail.com wrote: > On Thursday, October 23, 2014 10:07:26 AM UTC-7, jkn wrote: > > Hi all > > I haven't heard in mentioned here, but since I saw one of the boards > > today thought I'd pass on the news: > > > > The Kickstarter 'MicroPytho

Re: [Python-Dev] Dinamically set __call__ method

2014-11-08 Thread Ethan Furman
On 11/07/2014 10:50 PM, dieter wrote: Ethan Furman writes: On 11/06/2014 10:59 PM, dieter wrote: John Ladasky writes: On Tuesday, November 4, 2014 11:12:31 AM UTC-8, Ethan Furman wrote: If you really absolutely positively have to have the signature be correct for each instance, you may to

Re: Moving a window on the screen

2014-11-08 Thread Akira Li
Terry Reedy writes: > On 11/8/2014 11:35 AM, Akira Li wrote: >> "ast" writes: >> >>> Ok, thx, it works now with: >>> >>> import tkinter >>> fen = tkinter.Tk() >>> >>> x=0 >>> >>> def moveW(): >>> global x >>> fen.geometry("200x200+%d+10" % x) >>> x = x + 10 >>> if (x < 1200): >

Engaging, powerful - video inspriration/learning - Your best selections

2014-11-08 Thread flebber
Morning Have you seen any python videos that were part of a series or that were from a conference that you found engaging and made a point click or solidify a concept or drive you to action to create something you wanted. That took an advanced topic or concept and made it clear as day to you.

Re: Leo 5.0 alpha 2 released

2014-11-08 Thread flebber
On Saturday, 8 November 2014 23:26:20 UTC+11, edre...@gmail.com wrote: > Leo 5.0a2 is now available at: > http://sourceforge.net/projects/leo/files/Leo/ > > Leo is a PIM, an IDE and an outliner. > Video tutorials: http://leoeditor.com/screencasts.html > Text tutorials: http://leoeditor.com/tutori

Re: Different behaviour in list comps and generator expressions

2014-11-08 Thread Wolfgang Maier
On 08.11.2014 02:50, Steven D'Aprano wrote: The following list comprehension and generator expression are almost, but not quite, the same: [expr for x in iterable] list(expr for x in iterable) The difference is in the handling of StopIteration raised inside the expr. Generator expressions con

Re: [Python-Dev] Dinamically set __call__ method

2014-11-08 Thread Gregory Ewing
Ethan Furman wrote: On 11/06/2014 10:59 PM, dieter wrote: A possibility to get the original approach implemented looks like: make "__call__" a descriptor on the class which looks up the real method on the instance. This still wouldn't get the signatrue correct, though. Why not? O

Re: Different behaviour in list comps and generator expressions

2014-11-08 Thread Wolfgang Maier
On 08.11.2014 22:31, Wolfgang Maier wrote: On 08.11.2014 02:50, Steven D'Aprano wrote: The following list comprehension and generator expression are almost, but not quite, the same: [expr for x in iterable] list(expr for x in iterable) The difference is in the handling of StopIteration raise

Syncing audio and video for casual recording

2014-11-08 Thread Tobiah
I decided I'd like to publish some youtube videos of me playing an instrument. The audio being the important bit, I'd like to use my existing mics, which I've been sending through a USB audio interface to my computer. I don't have any camera yet, other than a prosumer digital camera that does ta

Re: [Python-Dev] Dinamically set __call__ method

2014-11-08 Thread Ethan Furman
On 11/08/2014 02:31 PM, Gregory Ewing wrote: Seems to depend on how you get hold of the object you're inspecting the signature of. I did an experiment: class C(object): @property def __call__(self): return self.call def f(x, y): print("Called f with %s, %s" % (x, y))

Re: FYI: Micro Python running on kickstarter pyBoard project, now shipping

2014-11-08 Thread Terry Reedy
On 11/8/2014 2:41 PM, John Pinner wrote: They are quite different devices: * The Raspberry Pi is a low-power general purpose computer designed specifically for education purposes. It just so happens that it's ideal for geek experimentation as well... * MicroPython is an optimised version of Py