#๐Ÿ”’ Tkinter Positioning error

5 messages ยท Page 1 of 1 (latest)

cunning slateBOT
#

@hollow lion

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

hollow lion
#
    def create_webhook_frame(self):
        self.webhook = tk.LabelFrame(self.tab2, text="Discord", padx=10, pady=10)
        self.webhook.grid(row=0, column=0, padx=10, pady=10)

        self.isWebhook = tk.IntVar()

        self.doWebhook = tk.Checkbutton(self.webhook, text="Enable Webhook", variable=self.isWebhook, command=self.toggle_webhook)
        self.doWebhook.grid(row=0, column=0, columnspan=3, sticky='w')

        self.webhookLabel = tk.Label(self.webhook, text="Webhook URL:")
        self.webhookLabel.grid(row=1, column=0, sticky='w')
        self.webhookLink = tk.Entry(self.webhook, width=55)
        self.webhookLink.grid(row=2, column=0, sticky='w')

        self.useridLabel = tk.Label(self.webhook, text="Discord User ID For Pings:")
        self.useridLabel.grid(row=3, column=0, sticky='w')
        self.userid = tk.Entry(self.webhook, width=55)
        self.userid.grid(row=4, column=0, sticky='w')

        self.statue = tk.IntVar()

        self.sendStatue = tk.Checkbutton(self.webhook, text="Send Statues", variable=self.statue)
        self.sendStatue.grid(row=5, column=0, columnspan=3, sticky='w')

        self.isInventory = tk.IntVar()

        self.doInventory = tk.Checkbutton(self.webhook, text="Screenshot Inventory", variable=self.isInventory, command=self.toggle_inventory)
        self.doInventory.grid(row=6, column=0, columnspan=3, sticky='w')

        self.everyInv1 = tk.Label(self.webhook, text="Every:")
        self.everyInv1.grid(row=7, column=0, sticky='e')
        self.everyInv = tk.Entry(self.webhook, width=5)
        self.everyInv.grid(row=7, column=1, padx=5)
        self.everyInv2 = tk.Label(self.webhook, text="minutes")
        self.everyInv2.grid(row=7, column=2, sticky='w')

        self.toggle_webhook()
cunning slateBOT
#

@hollow lion

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.