Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python easygui

# requires pip install easygui
import easygui as eg

# Ok msgbox
eg.msgbox(msg="hi", title="msgbox example")

# open file dialog
filename = eg.fileopenbox()
print(filename)

# save file dialog
filename = eg.filesavebox()
print(filename)

# single select choice
choice = eg.choicebox(msg="Select an item", title="colors", choices=["red", "blue", "green"])
print(choice)

# multiple select choice returns a list of items
choices = eg.multchoicebox(msg="Select an item", title="colors", choices=["red", "blue", "green"])
print(choices)

# inputbox
name = eg.enterbox(msg="What is your name?")
print(name)

# yes no input box - returns true if yes false if no
yes_no = eg.ynbox(msg="select yes or not", title="yes no example")
print(yes_no)

# password input box
password = eg.passwordbox(msg="Enter your password", title='password example')
print(password)

# easygui demo
eg.egdemo()
Comment

PREVIOUS NEXT
Code Example
Python :: enter selenium in python 
Python :: hungarian algorithm python 
Python :: add column to df from another df 
Python :: maximum and minimum value of array python 
Python :: sqlalchemy_database_uri 
Python :: How to check if a given string is a palindrome, in Python? 
Python :: how to download a project from pythonanywhere 
Python :: creating new column with dictionary 
Python :: extract all text from website using beautifulsoup and python 
Python :: how to reindex columns in pandas 
Python :: machine learning python 
Python :: python request coinmarketcap 
Python :: compose functions python 
Python :: import tsv as dataframe python 
Python :: add to a list python 
Python :: how to check a phone number is valid in python 
Python :: opencv loop video 
Python :: matplotlib documentation download via 
Python :: python random walk 
Python :: convert string to lowercase python 
Python :: stop function python 
Python :: python random array 
Python :: list -1 python 
Python :: python get local ipv4 
Python :: add new row to dataframe pandas 
Python :: convert list to tuple python 
Python :: hash table in python 
Python :: python seaborn color map 
Python :: how to select top 5 in every group pandas 
Python :: python openpyxl csv to excel 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =