Category : listbox

from breezypythongui import EasyFrame from tkinter import BOTH, END, LEFT import tkinter as tk from tkinter import * class Converter(EasyFrame): """Application window""" def __init__(self): """Sets up the window and the widgets.""" EasyFrame.__init__(self, title="converter") # Label and button and field for Mexican Peso self.addLabel(text="MXN", row=0, column=0) self.MXNField = self.addFloatField( value=21.04, row=1, column=0, precision=3) self.addButton(text="Convert into Peso", ..

Read more

How can you make a PySimpleGui listbox with search functionality?⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Source: Python..

Read more

import sys import threading import time import tkinter from tkinter import * from tkinter import ttk import scapy.all as scapy from scapy.layers.l2 import Ether, ARP import re import numpy #====GUI===== from tkinter import Entry gui = Tk() gui.title(‘Network Scanner’) gui.geometry("400×600+20+20") #====delete Function==== def delete(): listbox.delete(0,tkinter.END) #====scanning Function==== def startScan(): ip_add_range_pattern = re.compile("^(?:[0-9]{1,3}.){3}[0-9]{1,3}/[0-9]*$") while True: ip_add_range_entered ..

Read more

Good evening. Let’s get started: I first started using Listbox in Tkinter, and I need to get some action from each value. For example: The user clicks ‘use encrypted’ and he gets one action related to encryption, and if he clicks ‘use decrypted’, he gets a second action that is not related to encryption. How ..

Read more

Easy question, in a listbox,( sg.Listbox ) how do I collect value? , that is, when I select that line of the listbox (listbox 2, for example) with what parameters do I make the conditional? Example: ……. [sg.Listbox(values=(‘Listbox 1’, ‘Listbox 2’, ‘Listbox 3′,’Listbox 4’, ‘Listbox 5’), key="LISTBOX"], [sg.Button(‘Option’)]] …… while True: # Event Loop event, ..

Read more