Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: COMPLEX! Transparent Canvas Linux
Post: RE: COMPLEX! Transparent Canvas Linux

(Jun-21-2023, 02:51 PM)deanhystad Wrote: Why do you want the canvas to be transparent? What is behind the canvas that you want to see? looks like that but it can vary from application to applicatio...
AceScottie GUI 7 1,804 Jun-21-2023, 06:44 PM
    Thread: COMPLEX! Transparent Canvas Linux
Post: RE: COMPLEX! Transparent Canvas Linux

(Jun-21-2023, 03:00 AM)deanhystad Wrote: I can make something that looks exactly the same by making the canvas the size of the window and drawing a blue rectangle. No need for win-anything. import ...
AceScottie GUI 7 1,804 Jun-21-2023, 06:37 PM
    Thread: COMPLEX! Transparent Canvas Linux
Post: RE: COMPLEX! Transparent Canvas Linux

(Jun-20-2023, 11:47 PM)deanhystad Wrote: I do not understand this: Quote:One of these piceces is to create a transparent Canvas background so i can draw a circle without having a square border behin...
AceScottie GUI 7 1,804 Jun-21-2023, 12:22 AM
    Thread: COMPLEX! Transparent Canvas Linux
Post: COMPLEX! Transparent Canvas Linux

Im looking to make my code cross compatible with Linux. Unfortunatly i have some bits of code that rely on the win32 module and windows API calls to properly maintain. One of these piceces is to cre...
AceScottie GUI 7 1,804 Jun-20-2023, 10:55 PM
    Thread: Remove duplicate images - tkinter?
Post: RE: Remove duplicate images - tkinter?

you can use something like: for all in someList: Image = Image.open("assets/default.gif") Image = Image.resize((32, 32), Image.ANTIALIAS) Icon = ImageTk.PhotoImage(Image) visable_object=...
AceScottie GUI 5 5,368 Nov-06-2018, 02:19 PM
    Thread: Frame in canvas wont fill
Post: Frame in canvas wont fill

i have a Canvas set in my root layout called "window". Inside "window" i have a frame called "infill". Inside "infill" i have a Canvas called "can" and a scrollBar called "Cscroll". finally inside "ca...
AceScottie GUI 0 3,103 Nov-06-2018, 02:00 PM
    Thread: dealing with spaces in file names
Post: RE: dealing with spaces in file names

(Jun-01-2018, 01:49 PM)snippsat Wrote: (Jun-01-2018, 12:57 PM)AceScottie Wrote: I never actually define the string manually it's just pulled from os.listdir() so I can't add the r to the start of ...
AceScottie General Coding Help 5 75,207 Jun-02-2018, 01:06 PM
    Thread: dealing with spaces in file names
Post: RE: dealing with spaces in file names

I have tried the subprocess module as well with the same result. The issue is the r"string space". I never actually define the string manually it's just pulled from os.listdir() so I can't add the r ...
AceScottie General Coding Help 5 75,207 Jun-01-2018, 12:57 PM
    Thread: dealing with spaces in file names
Post: dealing with spaces in file names

example import os file = "C:\\test file.txt" os.system("start '" +file +"'")Error:The system cannot find the file 'C:\test.im just looking to open any file with windows default applications
AceScottie General Coding Help 5 75,207 May-31-2018, 10:09 PM
    Thread: [SOLVED] Create per button popup menu py2.7
Post: RE: [Tkinter] Create per button popup menu py2.7

ok well this has taken me the best part of 12 hours and is a bit messy but the functionality is there. from Tkinter import * from time import sleep root = Tk() def hello(text): print("this is butto...
AceScottie GUI 5 6,192 May-31-2018, 12:39 AM
    Thread: [SOLVED] Create per button popup menu py2.7
Post: RE: [Tkinter] Create per button popup menu py2.7

I have not defined Hello 3 times. The first code is the example, my actual code is 300+ lines and messy. The example code is everything you need to answer the question. The second code is what im gett...
AceScottie GUI 5 6,192 May-30-2018, 09:31 AM
    Thread: [SOLVED] Create per button popup menu py2.7
Post: [SOLVED] Create per button popup menu py2.7

Simplified code: from Tkinter import * root = Tk() def hello(): print("this is a hello:") def test(): print("this is a test:") def popup(event): try: popup_menu.tk_popup(event.x_root, event.y_r...
AceScottie GUI 5 6,192 May-30-2018, 12:41 AM
    Thread: while iterating a list, it changes all the elements at once
Post: RE: while iterating a list, it changes all the ele...

you can address elements in a 2D list by just selecting the element you want to change. example: list = [[None, None, None], [None, None, None], [None, None, None]] for i in range(0,3):     list[0][i]...
AceScottie General Coding Help 7 4,190 Nov-27-2017, 11:48 AM
    Thread: Windows/linux shell emulation
Post: RE: Windows/linux shell emulation

(Nov-25-2017, 09:02 PM)wavic Wrote: You could do it by building an RPC server and clients. A library capable of this is zerorpc. There is an example on the github page. Or mprpc which is based on th...
AceScottie General Coding Help 3 3,449 Nov-27-2017, 11:41 AM
    Thread: Windows/linux shell emulation
Post: Windows/linux shell emulation

hello.  I'm looking for a way to run commands and execute programs on both windows and Linux system to make my servers more accessible than running multiple SSH clients.  I am using 3 scripts. The fir...
AceScottie General Coding Help 3 3,449 Nov-25-2017, 07:35 PM
    Thread: Change single element in 2D list changes every 1D element
Post: RE: Change single element in 2D list changes every...

thank you. I sort of understand however when i was testing i was able to change an entire row: maze[5] = [1, 1, 1, 1, 1, 1, 1, 1, 1]originally i also created the list differently maze = [] mazer = [0]...
AceScottie General Coding Help 9 12,078 Nov-13-2017, 06:43 PM
    Thread: Change single element in 2D list changes every 1D element
Post: RE: Change single element in 2D list changes every...

(Nov-13-2017, 05:43 PM)Larz60+ Wrote: ' something like ' d0esn't work in programming, what was the actual input? there is nothing 'something like' about it. if the list is 10x10 elements the user (i...
AceScottie General Coding Help 9 12,078 Nov-13-2017, 06:02 PM
    Thread: Python script that transfer it self
Post: RE: Python script that transfer it self

to run a python script you will need a secon python scrip to check when the program is launched. taken from stack exchange: def running(): n=0# number of instances of the program running prog=[line.s...
AceScottie General Coding Help 6 4,521 Nov-13-2017, 05:27 PM
    Thread: Python script that transfer it self
Post: RE: Python script that transfer it self

first you need to know what media player you want to use, then the video full name and location. windows has a "start" command embedded in command line, python can use this with the os.system command ...
AceScottie General Coding Help 6 4,521 Nov-13-2017, 04:27 PM
    Thread: Trouble passing arguments
Post: RE: Trouble passing arguments

how are you calling the download_clips(response) function ?
AceScottie General Coding Help 2 2,938 Nov-13-2017, 04:02 PM

User Panel Messages

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