Re: TCL/TK as default UI toolkit, and wayland

2016-10-14 Thread kerbingamer376
On Friday, October 14, 2016 at 12:40:53 PM UTC+1, kerbingamer376 wrote: > Python's "standard" (and bundled on most platforms) UI tookkit is TCL/TK. > However, this has A LOT of drawbacks: > > * It's eyesore on a lot of platforms > * It's non-pythonic &g

Re: TCL/TK as default UI toolkit, and wayland

2016-10-14 Thread kerbingamer376
Python's "standard" (and bundled on most platforms) UI tookkit is TCL/TK. However, this has A LOT of drawbacks: * It's eyesore on a lot of platforms * It's non-pythonic * It just flat out fails on some desktop environments * On linux it requires X, however lots of distros are now using wayland an

Re: Using copyreg to pickle unpicklable oblects

2016-09-19 Thread kerbingamer376
On Monday, September 19, 2016 at 5:48:35 PM UTC+1, Peter Otten wrote: > kerbingamer376 wrote: > > > Hi, > > [No need to start a new thread for this] > > > I have an object (pygame.mixer.Sound) and, to convert it to a picklable > > format, I can run: > >

Using copyreg to pickle unpicklable oblects

2016-09-19 Thread kerbingamer376
Hi, I have an object (pygame.mixer.Sound) and, to convert it to a picklable format, I can run: sound_object.get_raw() and to turn that back into an object, I can run: sound_object = pygame.mixer.Sound(raw_data) Is it possible to use copyreg or something similar so it's done automatically when

Re: Serialising an 8x8x8 array of pygame sounds

2016-09-18 Thread kerbingamer376
On Sunday, September 18, 2016 at 2:59:10 PM UTC+1, Steve D'Aprano wrote: > On Sun, 18 Sep 2016 11:20 pm, kerbingamer376 wrote: > > > Is it possible to serialise an 8x8x8 array of pygame.mixer.Sound objects, > > so they stay at the same places in the array, but in a format

Serialising an 8x8x8 array of pygame sounds

2016-09-18 Thread kerbingamer376
Is it possible to serialise an 8x8x8 array of pygame.mixer.Sound objects, so they stay at the same places in the array, but in a format that can be pickled, and then the opposite (read from that back to pygame.mixer.Sound objects)? Thanks (copied from stackoverflow question @ https://is.gd/JDtU

Re: how to automate java application in window using python

2016-09-15 Thread kerbingamer376
On Thursday, September 15, 2016 at 8:13:05 AM UTC+1, meInvent bbird wrote: > how to automate java application in window using python > > 1. scroll up or down of scroll bar > 2. click button > 3. type text in textbox wtf? -- https://mail.python.org/mailman/listinfo/python-list

Playing an audio file, but not waiting for it to finish?

2016-09-15 Thread kerbingamer376
Hi, I have a library that allows me to play sound files. However, the play function waits for the sound to finish before it returns, and I'd like to be able to start the sound playing, and then have it return immediately so my program can continue, but also be able to know when the sound finishe

Re: Tkinter file dialog screwed

2016-09-14 Thread Kerbingamer376
On Wednesday, September 14, 2016 at 2:14:16 AM UTC+1, Steve D'Aprano wrote: > On Wed, 14 Sep 2016 06:08 am, kerbingamer376 wrote: > > > The tkinter file dialog is, for me, unusable. Whenever I try to use it, it > > opens, but all the text is white on a white backgr

Tkinter file dialog screwed

2016-09-13 Thread kerbingamer376
The tkinter file dialog is, for me, unusable. Whenever I try to use it, it opens, but all the text is white on a white background (see this http://xomf.com/qzhgy) making it unusable. This has happened on 2 linux systems, both KDE plasma 5. Any help? -- https://mail.python.org/mailman/listinfo/p