Help improving with tkinter /u/Ranch1k Python Education

Help improving with tkinter /u/Ranch1k Python Education

Do you guys have any idea on how can I improve this python tkinter widget that I am making to create a jarvis like program, and how to remove the white border in the button?

import tkinter as tk from tkinter import PhotoImage from tkinter import ttk from tkinter import * from PIL import ImageTk def open_secondary_window(): # Create secondary (or popup) window. secondary_window = tk.Toplevel() secondary_window.title("Apps") secondary_window.config(width=1950, height=1800, background="purple") # Create a button to close (destroy) this window. button_close = ttk.Button( secondary_window, text="Batcave", command=secondary_window.destroy ) button_close.place(x=5, y=5) # Create the main window. root = tk.Tk() root.config(width=1800, height=800) root.title("Batcave.V1") root.attributes('-fullscreen',True) # Create a button inside the main window that # invokes the open_secondary_window() function # when pressed. jarvis = "jarvisbg.png" canvas = tk.Canvas(root, width=1920, height=1750) canvas.pack() tk_img = ImageTk.PhotoImage(file = jarvis) canvas.create_image(960, 540, image=tk_img) button_exit = ttk.Button(root, text="Exit", command=root.destroy) button_open = ttk.Button(root, text="Apps Room", command=open_secondary_window) button_exit.place(x=5, y=50) button_open.place(x=5, y=5) root.mainloop() 

submitted by /u/Ranch1k
[link] [comments]

​r/learnpython Do you guys have any idea on how can I improve this python tkinter widget that I am making to create a jarvis like program, and how to remove the white border in the button? import tkinter as tk from tkinter import PhotoImage from tkinter import ttk from tkinter import * from PIL import ImageTk def open_secondary_window(): # Create secondary (or popup) window. secondary_window = tk.Toplevel() secondary_window.title(“Apps”) secondary_window.config(width=1950, height=1800, background=”purple”) # Create a button to close (destroy) this window. button_close = ttk.Button( secondary_window, text=”Batcave”, command=secondary_window.destroy ) button_close.place(x=5, y=5) # Create the main window. root = tk.Tk() root.config(width=1800, height=800) root.title(“Batcave.V1”) root.attributes(‘-fullscreen’,True) # Create a button inside the main window that # invokes the open_secondary_window() function # when pressed. jarvis = “jarvisbg.png” canvas = tk.Canvas(root, width=1920, height=1750) canvas.pack() tk_img = ImageTk.PhotoImage(file = jarvis) canvas.create_image(960, 540, image=tk_img) button_exit = ttk.Button(root, text=”Exit”, command=root.destroy) button_open = ttk.Button(root, text=”Apps Room”, command=open_secondary_window) button_exit.place(x=5, y=50) button_open.place(x=5, y=5) root.mainloop() submitted by /u/Ranch1k [link] [comments] 

Do you guys have any idea on how can I improve this python tkinter widget that I am making to create a jarvis like program, and how to remove the white border in the button?

import tkinter as tk from tkinter import PhotoImage from tkinter import ttk from tkinter import * from PIL import ImageTk def open_secondary_window(): # Create secondary (or popup) window. secondary_window = tk.Toplevel() secondary_window.title("Apps") secondary_window.config(width=1950, height=1800, background="purple") # Create a button to close (destroy) this window. button_close = ttk.Button( secondary_window, text="Batcave", command=secondary_window.destroy ) button_close.place(x=5, y=5) # Create the main window. root = tk.Tk() root.config(width=1800, height=800) root.title("Batcave.V1") root.attributes('-fullscreen',True) # Create a button inside the main window that # invokes the open_secondary_window() function # when pressed. jarvis = "jarvisbg.png" canvas = tk.Canvas(root, width=1920, height=1750) canvas.pack() tk_img = ImageTk.PhotoImage(file = jarvis) canvas.create_image(960, 540, image=tk_img) button_exit = ttk.Button(root, text="Exit", command=root.destroy) button_open = ttk.Button(root, text="Apps Room", command=open_secondary_window) button_exit.place(x=5, y=50) button_open.place(x=5, y=5) root.mainloop() 

submitted by /u/Ranch1k
[link] [comments]  Do you guys have any idea on how can I improve this python tkinter widget that I am making to create a jarvis like program, and how to remove the white border in the button? import tkinter as tk from tkinter import PhotoImage from tkinter import ttk from tkinter import * from PIL import ImageTk def open_secondary_window(): # Create secondary (or popup) window. secondary_window = tk.Toplevel() secondary_window.title(“Apps”) secondary_window.config(width=1950, height=1800, background=”purple”) # Create a button to close (destroy) this window. button_close = ttk.Button( secondary_window, text=”Batcave”, command=secondary_window.destroy ) button_close.place(x=5, y=5) # Create the main window. root = tk.Tk() root.config(width=1800, height=800) root.title(“Batcave.V1”) root.attributes(‘-fullscreen’,True) # Create a button inside the main window that # invokes the open_secondary_window() function # when pressed. jarvis = “jarvisbg.png” canvas = tk.Canvas(root, width=1920, height=1750) canvas.pack() tk_img = ImageTk.PhotoImage(file = jarvis) canvas.create_image(960, 540, image=tk_img) button_exit = ttk.Button(root, text=”Exit”, command=root.destroy) button_open = ttk.Button(root, text=”Apps Room”, command=open_secondary_window) button_exit.place(x=5, y=50) button_open.place(x=5, y=5) root.mainloop() submitted by /u/Ranch1k [link] [comments]

Read more

Why do pubic hair and armpit hair grow faster than the hair on my scalp? /u/reverseinhumain No such thing as stupid questions

Why do pubic hair and armpit hair grow faster than the hair on my scalp? /u/reverseinhumain No such thing as stupid questions submitted by /u/reverseinhumain
[link] [comments]

​r/NoStupidQuestions submitted by /u/reverseinhumain [link] [comments]  submitted by /u/reverseinhumain
[link] [comments]  submitted by /u/reverseinhumain [link] [comments]

Read more

Help me design a dragon’s lair encounter. /u/leon-june DnD: Roll for Initiative!

Help me design a dragon’s lair encounter. /u/leon-june DnD: Roll for Initiative!

This is intended to be a challenge for my players who want to fight an ancient red dragon. I plan for an old dwarven forging hall to have been taken over by an aging red dragon whose memory and mind are failing her—as well as her body, as her age has claimed her vision. This makes her no less dangerous, however. In fact, it makes her less predictable and more prone to outbursts of fiery violence against anything and everything before her. She is a scourge on the surrounding lands and a local lord will be offering the party 500gp each, as well as the dragon’s horde, to rid them of her.

The first part of the dungeon is intended to be a pretty straightforward “fight the kobolds” resource-draining dungeon crawl.

The second part is the dragon’s lair, where they see her atop her hoard. I want her to recognize the scent of sulfur and filth on them and believe them to be her kobold worshippers. I’m just not sure how to make that interesting for them. I want to make a fun social encounter with an unpredictable and dangerous blind dragon with a failing memory that leads into a challenging boss fight with interesting lair actions and all that. (Party is level 7 with magic items. They want a real challenge, so I’m hoping for this encounter to be deadly.)

Any advice is appreciated!! <3

submitted by /u/leon-june
[link] [comments]

​r/DnD This is intended to be a challenge for my players who want to fight an ancient red dragon. I plan for an old dwarven forging hall to have been taken over by an aging red dragon whose memory and mind are failing her—as well as her body, as her age has claimed her vision. This makes her no less dangerous, however. In fact, it makes her less predictable and more prone to outbursts of fiery violence against anything and everything before her. She is a scourge on the surrounding lands and a local lord will be offering the party 500gp each, as well as the dragon’s horde, to rid them of her. The first part of the dungeon is intended to be a pretty straightforward “fight the kobolds” resource-draining dungeon crawl. The second part is the dragon’s lair, where they see her atop her hoard. I want her to recognize the scent of sulfur and filth on them and believe them to be her kobold worshippers. I’m just not sure how to make that interesting for them. I want to make a fun social encounter with an unpredictable and dangerous blind dragon with a failing memory that leads into a challenging boss fight with interesting lair actions and all that. (Party is level 7 with magic items. They want a real challenge, so I’m hoping for this encounter to be deadly.) Any advice is appreciated!! <3 submitted by /u/leon-june [link] [comments] 

This is intended to be a challenge for my players who want to fight an ancient red dragon. I plan for an old dwarven forging hall to have been taken over by an aging red dragon whose memory and mind are failing her—as well as her body, as her age has claimed her vision. This makes her no less dangerous, however. In fact, it makes her less predictable and more prone to outbursts of fiery violence against anything and everything before her. She is a scourge on the surrounding lands and a local lord will be offering the party 500gp each, as well as the dragon’s horde, to rid them of her.

The first part of the dungeon is intended to be a pretty straightforward “fight the kobolds” resource-draining dungeon crawl.

The second part is the dragon’s lair, where they see her atop her hoard. I want her to recognize the scent of sulfur and filth on them and believe them to be her kobold worshippers. I’m just not sure how to make that interesting for them. I want to make a fun social encounter with an unpredictable and dangerous blind dragon with a failing memory that leads into a challenging boss fight with interesting lair actions and all that. (Party is level 7 with magic items. They want a real challenge, so I’m hoping for this encounter to be deadly.)

Any advice is appreciated!! <3

submitted by /u/leon-june
[link] [comments]  This is intended to be a challenge for my players who want to fight an ancient red dragon. I plan for an old dwarven forging hall to have been taken over by an aging red dragon whose memory and mind are failing her—as well as her body, as her age has claimed her vision. This makes her no less dangerous, however. In fact, it makes her less predictable and more prone to outbursts of fiery violence against anything and everything before her. She is a scourge on the surrounding lands and a local lord will be offering the party 500gp each, as well as the dragon’s horde, to rid them of her. The first part of the dungeon is intended to be a pretty straightforward “fight the kobolds” resource-draining dungeon crawl. The second part is the dragon’s lair, where they see her atop her hoard. I want her to recognize the scent of sulfur and filth on them and believe them to be her kobold worshippers. I’m just not sure how to make that interesting for them. I want to make a fun social encounter with an unpredictable and dangerous blind dragon with a failing memory that leads into a challenging boss fight with interesting lair actions and all that. (Party is level 7 with magic items. They want a real challenge, so I’m hoping for this encounter to be deadly.) Any advice is appreciated!! <3 submitted by /u/leon-june [link] [comments]

Read more