Tkinter file dialog screwed
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/python-list
Re: Tkinter file dialog screwed
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 background (see this > > http://xomf.com/qzhgy) making it unusable. This has happened on 2 linux > > systems, both KDE plasma 5. Any help? > > > What happens if you change your KDE theme, or use another desktop > environment? > > > > > -- > Steve > “Cheer up,” they said, “things could be worse.” So I cheered up, and sure > enough, things got worse. neither make any difference. -- https://mail.python.org/mailman/listinfo/python-list
Playing an audio file, but not waiting for it to finish?
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 finishes. Is this possible, without modifying the library? -- https://mail.python.org/mailman/listinfo/python-list
Re: how to automate java application in window using python
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
Serialising an 8x8x8 array of pygame sounds
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/JDtURe) -- https://mail.python.org/mailman/listinfo/python-list
Re: Serialising an 8x8x8 array of pygame sounds
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 that can be > > pickled, and then the opposite (read from that back to pygame.mixer.Sound > > objects)? > > Can you seralise *one* Sound object? > > If not, then you can't serialise an array of Sound objects either. > > > > -- > Steve > “Cheer up,” they said, “things could be worse.” So I cheered up, and sure > enough, things got worse. That's my problem, the Sound object can't be picked, I was wondering if a way existed to convert said object to a serialize-able format. -- https://mail.python.org/mailman/listinfo/python-list
Using copyreg to pickle unpicklable oblects
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 I pickle pygame.mixer.Sound() objects? -- https://mail.python.org/mailman/listinfo/python-list
Re: Using copyreg to pickle unpicklable oblects
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: > > > > 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 I pickle pygame.mixer.Sound() objects? > > Have a look at the example from the documentation: > > >>> import copyreg, copy, pickle > >>> class C(object): > ... def __init__(self, a): > ... self.a = a > ... > >>> def pickle_c(c): > ... print("pickling a C instance...") > ... return C, (c.a,) > ... > >>> copyreg.pickle(C, pickle_c) > > > Translating that gives (untested) > > import copyreg # copy_reg in Python 2 > import pygame.mixer > > def pickle_sound(sound): > return pygame.mixer.Sound, (sound.get_raw(),) > > copyreg.pickle(pygame.mixer.Sound, pickle_sound) > > Does that work? I get: _pickle.PicklingError: Can't pickle : attribute lookup Sound on builtins failed -- https://mail.python.org/mailman/listinfo/python-list
Re: TCL/TK as default UI toolkit, and wayland
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 and so on. I think python needs a new "standard" UI toolkit. -- https://mail.python.org/mailman/listinfo/python-list
Re: TCL/TK as default UI toolkit, and wayland
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 > * It just flat out fails on some desktop environments > * On linux it requires X, however lots of distros are now using wayland > and so on. > > I think python needs a new "standard" UI toolkit. Sorry for typos. -- https://mail.python.org/mailman/listinfo/python-list