Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Audio gets muted when app minimized?
Post: RE: Audio gets muted when app minimized?

I found the problem. Turns out using pygame.mixer.quit() and after that pygame.mixer.init() causes the issue. But the problem's that I need to do it this way in order to update the frequency for the c...
MegasXLR Game Development 5 3,759 May-28-2018, 04:22 PM
    Thread: Audio gets muted when app minimized?
Post: RE: Audio gets muted when app minimized?

Will do, in the meantime I'm open for suggestions to somehow make it work - no matter how silly the solution can be. I tried to replace pygame with pyglet to see if it'd work but couldn't get all of p...
MegasXLR Game Development 5 3,759 May-27-2018, 01:25 PM
    Thread: Audio gets muted when app minimized?
Post: RE: Audio gets muted when app minimized?

(May-27-2018, 03:16 AM)metulburr Wrote: Mixing different GUI libraries such as pygame, tkinter, and pyqt is asking for trouble. There are so many unpredictable possibilities of problems from this. ...
MegasXLR Game Development 5 3,759 May-27-2018, 06:10 AM
    Thread: Audio gets muted when app minimized?
Post: Audio gets muted when app minimized?

Hello, Has anyone encountered a bug with PyGame which mutes the audio coming from pygame.mixer.music if a pygame.mixer.music.play() is executed while the app is minimized in Windows (10)? I checked w...
MegasXLR Game Development 5 3,759 May-26-2018, 02:22 PM
    Thread: QSlider jump to mouse click position
Post: RE: QSlider jump to mouse click position

Fixed it this way if anyone's interested: class QJumpSlider(QtGui.QSlider): def __init__(self, parent = None): super(QJumpSlider, self).__init__(parent) def mousePressEvent(self, event): #Jump...
MegasXLR GUI 2 8,266 May-26-2018, 08:55 AM
    Thread: QSlider jump to mouse click position
Post: RE: QSlider jump to mouse click position

I managed to actually make the audio go to the position where I clicked on the QSlider but now I can't figure out how to update the slider value itself. My code is below: import sys, tkinter, pygame, ...
MegasXLR GUI 2 8,266 May-25-2018, 04:59 PM
    Thread: QFSFileEngine::open: No file name specified
Post: RE: QFSFileEngine::open: No file name specified

This seems to be unfixable as it's not even my or Python's fault. It just so happens that some such themes have a note icon as their lyrics. http://lyrics.wikia.com/wiki/Breaking_Benjamin%3ALyra And t...
MegasXLR GUI 1 4,038 May-25-2018, 04:06 PM
    Thread: Simple Code, "Video System not Initialized"
Post: RE: Simple Code, "Video System not Initialized"

Try to put if pygame.mixer.get_busy() != None:before for event in pygame.event.get():Put the whole for loop in the if get_busy() block. I had the same error but for my MP3 player just yesterday and th...
MegasXLR Game Development 2 13,728 May-25-2018, 01:07 PM
    Thread: QSlider jump to mouse click position
Post: QSlider jump to mouse click position

So I've been searching for a way to make it so that when I click anywhere on a QSlider it would go to that position instead of just jumping one step ahead. But also I'd like to retain the ability to p...
MegasXLR GUI 2 8,266 May-25-2018, 11:53 AM
    Thread: QFSFileEngine::open: No file name specified
Post: QFSFileEngine::open: No file name specified

Hey again, I'm using the PyLyrics module to show lyrics of songs in a QTextBrowser but sometimes instead of lyrics it shows a broken image picture in the browser along with the label "Instrumental" t...
MegasXLR GUI 1 4,038 May-22-2018, 01:19 PM
    Thread: QTimer with pause/resume functions?
Post: RE: QTimer with pause/resume functions?

Counter method worked fine :) Problem fixed.
MegasXLR Homework 9 11,168 May-20-2018, 04:20 PM
    Thread: QTimer with pause/resume functions?
Post: RE: QTimer with pause/resume functions?

(May-17-2018, 03:53 PM)ThiefOfTime Wrote: Hmmmm, I would suggest, that you make a counter and a timer that runs each second. Let's say you know your song is 1 minute and 20 seconds long, then you kn...
MegasXLR Homework 9 11,168 May-17-2018, 04:21 PM
    Thread: QTimer with pause/resume functions?
Post: RE: QTimer with pause/resume functions?

(May-17-2018, 03:27 PM)ThiefOfTime Wrote: Oh ok, what is the function of your timer precisely? :) The one which I found but gave OverflowError on the last line is this: from PySide.QtCore import QTi...
MegasXLR Homework 9 11,168 May-17-2018, 03:36 PM
    Thread: QTimer with pause/resume functions?
Post: RE: QTimer with pause/resume functions?

(May-17-2018, 02:12 PM)ThiefOfTime Wrote: Ah I see what you mean. Aren't you using the phonon seek slider? No. Phonon didn't work for some reason. But this has nothing to do with a slider xd
MegasXLR Homework 9 11,168 May-17-2018, 03:06 PM
    Thread: QTimer with pause/resume functions?
Post: RE: QTimer with pause/resume functions?

(May-17-2018, 12:48 PM)ThiefOfTime Wrote: Why wouldn't you want to stop the timer via the pause method? you will find it in the documentation: https://srinikom.github.io/pyside-docs/P...Timer.html O...
MegasXLR Homework 9 11,168 May-17-2018, 12:55 PM
    Thread: QTimer with pause/resume functions?
Post: QTimer with pause/resume functions?

Hey there, I'm making a music player so have to use a QTimer and set its interval to the length of the current song in order to know when to automatically play the next song in the playlist when the c...
MegasXLR Homework 9 11,168 May-17-2018, 12:26 PM
    Thread: Annoying BeautifulSoup user warning.
Post: RE: Annoying BeautifulSoup user warning.

(May-14-2018, 03:42 PM)nilamo Wrote: You can use the warnings module to treat warnings as exceptions, or you can also just ignore them entirely. Here's some reading for you: https://docs.python.org...
MegasXLR Web Scraping & Web Development 10 8,534 May-14-2018, 06:04 PM
    Thread: Annoying BeautifulSoup user warning.
Post: RE: Annoying BeautifulSoup user warning.

Can i catch user warnings as exceptions btw? That way i won't have to edit every pylyrics module on each pc which runs the app.
MegasXLR Web Scraping & Web Development 10 8,534 May-12-2018, 06:12 AM
    Thread: Annoying BeautifulSoup user warning.
Post: RE: Annoying BeautifulSoup user warning.

(May-11-2018, 07:48 AM)ThiefOfTime Wrote: (May-10-2018, 07:00 PM)MegasXLR Wrote: Hello, I have the following code: GUI.py from PySide import QtCore, QtGui class Graphics(object): def setupUi...
MegasXLR Web Scraping & Web Development 10 8,534 May-11-2018, 11:12 AM
    Thread: Annoying BeautifulSoup user warning.
Post: Annoying BeautifulSoup user warning.

Hello, I have the following code: GUI.py from PySide import QtCore, QtGui class Graphics(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow...
MegasXLR Web Scraping & Web Development 10 8,534 May-10-2018, 07:00 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020