Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

tkinter

  1. menator01

    Python tkinter ttk treeview example

    Basic example of tkinter ttk treeview with alternating row colors and styles text # Do the imports import tkinter as tk from tkinter import ttk, font # Initiate the root window root = tk.Tk() # Setting min size root.minsize(400,300) # Get some data for inserting fonts = list(font.families())...
  2. menator01

    Python Introduction to a Simple Tkinter Calculator

    Tkinter Calculator In this tutorial we will build a simple calculator using tkinter and python. Modules needed tkinter tkinter is installed by default with python if it does not come with your version of python, it can be installed by Ubuntu - sudo apt install python3-tk MacOS - brew install...
  3. menator01

    Python Simple Tkinter Calculator Part 1 - Tkinter Window

    In this tutorial we will get our tkinter window running and define our 2 classes import tkinter as tk from decimal import Decimal class Window: def __init__(self, parent): self.parent = parent ''' We will be using the grid manager ''' parent.columnconfigure(0...
  4. menator01

    Python Simple Tkinter Calculator Part 2 - (Building the window display)

    In part 2 of our project, we will be building the window graphics for the calculator. We will: Create a container to hold all the widgets Create a entry field that will display the numbers, symbols, and results of calculations Create a list of numbers and symbols used Create an empty list to...
  5. menator01

    Python Simple Tkinter Calculator Part 3 (Build methods and bind buttons)

    Simple Tkinter Calculator Part 3 In part3 we will: Create methods in our Controller class Bind the buttons to the methods Create a simple validation Create methods def valid_input(self,arg): ''' Method for validating input ''' if arg.isalpha() or arg == '='...
  6. menator01

    Python Simple Tkinter Calculator - Full Code

    Here is the full working code # Do the imports import tkinter as tk from decimal import Decimal class Window: def __init__(self, parent): self.parent = parent ''' We will be using the grid manager ''' parent.columnconfigure(0, weight=1) parent.rowconfigure(0...
  7. dumps41

    Python how do i get numberOfItemsHired to accept only 1-500 items, and if not 1-500 display an error message

    how do i get numberOfItemsHired to accept only 1-500 items, and if not 1-500 display an error message? This is my code, I've tried if not int(entry_numberOfItemsHired.get()) >= 1 or int(entry_numberOfItemsHired.get()) <= 500: and I've also tried using: if...
  8. T

    Python PoS system

    Im creating a simple PoS system on python using tk for my GUI, so far i have made a log allowing access to the code and a menu system to go with it. I have also made a SQL database to keep item descriptions linking it to the GUI to create buttons My issues/criteria: i need the total price...
  9. F

    Python Need help with my code for a tkinter gui youtube downloader - AttributeError: 'int' object has no attribute 'cget'

    First things first, Im german (strings in german aswell) and a bloody beginner when it comes to coding, but its fun and I want to improve. This code worked perfectly fine until a changed something that made this error appear: AttributeError: 'int' object has no attribute 'cget' The cget...
  10. heisenberg_1995

    Python Change Mouse Cursor Style while parsing through an image in OpenCV

    I want to change my cursor style from default to cross while parsing through an image. To do that I came across Tkinter, So, how can I integrate the following code with Tkinter? I can change the cursor style in a Tkinter window. Any other solution is also acceptable for me. import cv2...
Back
Top Bottom