Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: gnome-terminal
Post: RE: gnome-terminal

(May-10-2024, 05:42 PM)Axel_Erfurt Wrote: sudo needs a password.yes I know that when the terminal opens up I get the error message when I enter my password it does just fine I don't understand why a...
Raysz General Coding Help 5 327 May-10-2024, 07:59 PM
    Thread: gnome-terminal
Post: gnome-terminal

So I'm trying to execute a simple command here it does run but I come up with errors os.system("gnome-terminal -e 'sudo apt update'")# Option ā€œ-eā€ is deprecated and might be removed in a later versio...
Raysz General Coding Help 5 327 May-10-2024, 04:40 PM
    Thread: cmd terminal
Post: RE: cmd terminal

(Apr-12-2024, 11:56 AM)deanhystad Wrote: But do you need to open the window at all? You can do the scan without opening a cmd window. You do this: def sfc_scannow_data(): subprocess.Popen(["sf...
Raysz General Coding Help 6 612 Apr-12-2024, 04:11 PM
    Thread: cmd terminal
Post: RE: cmd terminal

(Apr-11-2024, 08:42 PM)deanhystad Wrote: If you don't display the cmd window it cannot be closed. Do you want the window? If so, why? When I execute the sfc /scannow it does open up the window the...
Raysz General Coding Help 6 612 Apr-12-2024, 04:43 AM
    Thread: cmd terminal
Post: cmd terminal

So I have the simple program that I made in Python tkinter It opens up a cmd window and executes sfc /scannow What I'm trying to figure out is if I click on the X at the top right corner I get a ^C ...
Raysz General Coding Help 6 612 Apr-11-2024, 07:28 PM
    Thread: Deleting Windows temp folder
Post: RE: Deleting Windows temp folder

Well I found the solution to my problem it was quite easy and that I overlooked it Thanks everyone for all your help
Raysz General Coding Help 7 592 Apr-02-2024, 12:36 PM
    Thread: Deleting Windows temp folder
Post: RE: Deleting Windows temp folder

Thanks for the input I will give it a try
Raysz General Coding Help 7 592 Apr-01-2024, 06:56 PM
    Thread: Deleting Windows temp folder
Post: RE: Deleting Windows temp folder

(Mar-31-2024, 12:32 PM)deanhystad Wrote: I would check if the folsed is enpty. If the folder is not empty, create the window,, else don't create the window. It is silly asking the user if they wan...
Raysz General Coding Help 7 592 Mar-31-2024, 06:10 PM
    Thread: Deleting Windows temp folder
Post: RE: Deleting Windows temp folder

(Mar-30-2024, 06:52 PM)deanhystad Wrote: Don't create the window if the folder is empty Okay I'm not sure I understand what you're trying to say if I run the program enters items in the folder it w...
Raysz General Coding Help 7 592 Mar-31-2024, 11:04 AM
    Thread: Deleting Windows temp folder
Post: Deleting Windows temp folder

I'm hoping somebody here can help me figure this out Basically what I'm trying to do is delete everything in the Windows 10 temp folder if there is an item or more in the folder this program works pe...
Raysz General Coding Help 7 592 Mar-30-2024, 06:29 PM
    Thread: return none
Post: RE: return none

Quote: (Dec-13-2023, 08:29 PM)deanhystad Wrote: That is not a solution. if your function is supposed to return information to the program, it needs to have a return statement. If a function is onl...
Raysz General Coding Help 7 1,016 Dec-15-2023, 07:28 PM
    Thread: return none
Post: RE: return none

(Dec-13-2023, 04:00 PM)Raysz Wrote: [quote="deanhystad" pid='175182' dateline='1702482355'] The answer is the same, use return. return description, description2And go work through some python tutori...
Raysz General Coding Help 7 1,016 Dec-13-2023, 04:23 PM
    Thread: return none
Post: RE: return none

(Dec-13-2023, 03:45 PM)deanhystad Wrote: The answer is the same, use return. return description, description2And go work through some python tutorials. Using the forum is an inefficient way for you...
Raysz General Coding Help 7 1,016 Dec-13-2023, 04:00 PM
    Thread: return none
Post: RE: return none

(Dec-13-2023, 02:36 AM)Larz60+ Wrote: functions, unless told to do otherwise will return None. Place a return statement in your code to return what you wish. for example: return description2okay I...
Raysz General Coding Help 7 1,016 Dec-13-2023, 03:35 PM
    Thread: return none
Post: return none

Hi everyone I have this small script here which I'm sure a lot of you will probably recognize it I modified it to look like this and it works pretty good but it wants to return none so how can I stop ...
Raysz General Coding Help 7 1,016 Dec-13-2023, 01:08 AM
    Thread: Get file description
Post: RE: Get file description

(Nov-23-2023, 01:16 PM)DeaD_EyE Wrote: This seems to work: from pathlib import Path # py -3.12 -m pip install pywin32 import pywintypes from win32api import GetFileVersionInfo def get_descriptio...
Raysz General Coding Help 2 594 Nov-25-2023, 03:46 PM
    Thread: Get file description
Post: Get file description

Quote:I have the small code here, as it stands right now it works perfectly What I'm trying to do is to get it to stop looking at program = r'\ccsetup551.exe' I'm trying to get it to look in with op...
Raysz General Coding Help 2 594 Nov-21-2023, 09:43 PM
    Thread: Trouble with Tkinter labels
Post: RE: Trouble with Tkinter labels

(Sep-10-2023, 03:46 PM)deanhystad Wrote: This does not draw the label. down_inst = Label(root, text='And Installing ' + ck_folder, font=('Arial', 15)) down_inst.place(x=150, y=450)Th...
Raysz GUI 6 1,700 Sep-10-2023, 06:02 PM
    Thread: Trouble with Tkinter labels
Post: RE: Trouble with Tkinter labels

(Sep-10-2023, 12:31 AM)menator01 Wrote: Are you trying to get some kind of effect like this? import tkinter as tk from random import choice textlist = ['text', 'more text', 'how about this?', 'sti...
Raysz GUI 6 1,700 Sep-10-2023, 08:34 AM
    Thread: Trouble with Tkinter labels
Post: Trouble with Tkinter labels

So I am new at Tkinter So I'm trying to create what I thought was a simple program I made this program in a standard Python script I thought all I had to do was convert certain things over to Tkinter...
Raysz GUI 6 1,700 Sep-09-2023, 11:18 PM

User Panel Messages

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