Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Shutdown any audio command
Post: RE: Shutdown any audio command
Well, no administrator available, no one else, can answer this. Congrats all |
|
francisco_neves2020 |
GUI |
2 |
2,073 |
May-31-2019, 07:51 AM |
|
|
Thread: Shutdown any audio command
Post: Shutdown any audio command
Hi guys i have been absent for a while do to house changing. I'm back now, trying to finish my python program. This are two audio commands in my program. When the audio starts some of them take a whil... |
|
francisco_neves2020 |
GUI |
2 |
2,073 |
May-14-2019, 06:51 PM |
|
|
Thread: display confusion
Post: RE: display confusion
|
francisco_neves2020 |
GUI |
2 |
2,108 |
May-06-2019, 07:21 PM |
|
|
Thread: pygame button stuck(unable to do anything)
Post: RE: pygame button stuck(unable to do anything)
(Apr-27-2019, 04:31 PM)Yoriz Wrote: In the code above you have def playmp3(file): playsound(file1) playsound(file2) should be as shown in my code before def playmp3(file): playsound(file) what y... |
|
francisco_neves2020 |
GUI |
14 |
5,747 |
Apr-27-2019, 09:04 PM |
|
|
Thread: pygame button stuck(unable to do anything)
Post: RE: pygame button stuck(unable to do anything)
(Apr-27-2019, 08:46 AM)Yoriz Wrote: Has the pygame sound code been tested independently and been proven to work?
Edit: I installed pygame and tried to play an mp3
import pygame
import time
file = ... |
|
francisco_neves2020 |
GUI |
14 |
5,747 |
Apr-27-2019, 03:40 PM |
|
|
Thread: pygame button stuck(unable to do anything)
Post: RE: pygame button stuck(unable to do anything)
So, i did as you suggested.
####################################################################################################
thread_pool_executor = futures.ThreadPoolExecutor(max_workers=1)
######... |
|
francisco_neves2020 |
GUI |
14 |
5,747 |
Apr-27-2019, 07:11 AM |
|
|
Thread: pygame button stuck(unable to do anything)
Post: RE: pygame button stuck(unable to do anything)
I manage to do this, but it still block the main gui. Because the audio has one minute of duration ore more, if i don't set the time sleep doesn't work, just plays the last one, if i set to 0, it does... |
|
francisco_neves2020 |
GUI |
14 |
5,747 |
Apr-26-2019, 10:24 PM |
|
|
Thread: pygame button stuck(unable to do anything)
Post: RE: pygame button stuck(unable to do anything)
(Apr-26-2019, 05:41 PM)SheeppOSU Wrote: He means instead of using time.sleep you need another solution. The link leads to a tutorial on how to do that. If you were talking about the tutorials being ... |
|
francisco_neves2020 |
GUI |
14 |
5,747 |
Apr-26-2019, 09:27 PM |
|
|
Thread: pygame button stuck(unable to do anything)
Post: RE: pygame button stuck(unable to do anything)
Yoriz, i have read your post, but it is the same like reading chinese to me. Sorry. If you have time and patient to rewrite some of my code with the changes, i would love it. Many thanks anyway. Just ... |
|
francisco_neves2020 |
GUI |
14 |
5,747 |
Apr-26-2019, 01:39 PM |
|
|
Thread: pygame button stuck(unable to do anything)
Post: RE: pygame button stuck(unable to do anything)
(Apr-24-2019, 09:37 PM)Yoriz Wrote: Using time.sleep in gui code or anything that takes some time to run will block the event loop and freeze the updating of the gui widgets.
To not lock the gui cod... |
|
francisco_neves2020 |
GUI |
14 |
5,747 |
Apr-24-2019, 11:24 PM |
|
|
Thread: pygame button stuck(unable to do anything)
Post: pygame button stuck(unable to do anything)
from random import choice
import webbrowser
from tkinter import ttk
from tkinter import *
import tkinter
import time
from tkinter import messagebox
import pygame
import os
import sys
################... |
|
francisco_neves2020 |
GUI |
14 |
5,747 |
Apr-24-2019, 11:54 AM |
|
|
Thread: Top Level Window - from tkinter import *
Post: RE: Top Level Window - from tkinter import *
(Apr-23-2019, 09:18 PM)Yoriz Wrote: I'm not great with tkinter but i think your code should be more along the lines of the following. I don't totally understand tkinters tk.TK(), in WxPython you cre... |
|
francisco_neves2020 |
GUI |
6 |
4,191 |
Apr-23-2019, 09:27 PM |
|
|
Thread: Top Level Window - from tkinter import *
Post: RE: Top Level Window - from tkinter import *
I got it to work, the new window opens, but kills the main program. If you saw my post first picture the window wasn't showing nothing at all. Now on this one is showing my text (fine so far). You wil... |
|
francisco_neves2020 |
GUI |
6 |
4,191 |
Apr-23-2019, 08:39 PM |
|
|
Thread: Top Level Window - from tkinter import *
Post: RE: Top Level Window - from tkinter import *
(Apr-23-2019, 07:34 PM)Yoriz Wrote: bold, italic and underline inside python code tags doesn't work, also i can't quite follow what you are asking **confused** .You can open a new tkinter window bas... |
|
francisco_neves2020 |
GUI |
6 |
4,191 |
Apr-23-2019, 07:38 PM |
|
|
Thread: Top Level Window - from tkinter import *
Post: Top Level Window - from tkinter import *
Hi guys, my main programs are based a lot of from subprocess call, but that is giving me problems (it doesn't matter why). I think i could write any code creating a new Top Level Window, but as you wi... |
|
francisco_neves2020 |
GUI |
6 |
4,191 |
Apr-23-2019, 07:25 PM |
|
|
Thread: Adding a Window to a Button wxPython
Post: RE: Adding a Window to a Button wxPython
(Apr-23-2019, 11:52 AM)Larz60+ Wrote: francisco, poster is looking for wxpython solutionsorry, i have to pay more attention. i went searching to give him the answer he needs. I miss that. |
|
francisco_neves2020 |
GUI |
4 |
3,862 |
Apr-23-2019, 12:43 PM |
|
|
Thread: Adding a Window to a Button wxPython
Post: RE: Adding a Window to a Button wxPython
Not sure, but in my understanding of what you are asking, for when button pressed, new tkinter window will popup, right? If it is that, the code is below.
from tkinter import *
root = Tk()
def new_... |
|
francisco_neves2020 |
GUI |
4 |
3,862 |
Apr-23-2019, 07:50 AM |
|
|
Thread: Default Paths
Post: RE: Default Paths
(Apr-22-2019, 08:54 PM)SheeppOSU Wrote: That's a lot of code, no one has replied to my thread - https://python-forum.io/Thread-drawing-m...ame?page=3 - so I have to go figure that out. Bye!
I know b... |
|
francisco_neves2020 |
GUI |
13 |
5,371 |
Apr-22-2019, 08:59 PM |
|
|
Thread: Default Paths
Post: RE: Default Paths
I can show the code now, but you will get mad at me, you will see why. **wall** I've update it to the website and it is working now since i changed the path to default "c:\"
from random import choice... |
|
francisco_neves2020 |
GUI |
13 |
5,371 |
Apr-22-2019, 08:40 PM |
|
|
Thread: Default Paths
Post: RE: Default Paths
(Apr-22-2019, 08:04 PM)SheeppOSU Wrote: I don't exactly get the question, but if you're asking but with a lot of pictures you could just do this -
import os
from pathlib import Path
d = Path(__file_... |
|
francisco_neves2020 |
GUI |
13 |
5,371 |
Apr-22-2019, 08:20 PM |