What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-29 09:26:37
k-means
import tkinter as tk from tkinter import filedialog import pandas as pd from pandas import DataFrame import matplotlib.pyplot as plt from sklearn.cluster import KMeans from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg root= tk.Tk() canvas1... Add solution -
Python 2022-01-28 23:22:08
tkinter filedialog filename
from tkinter import filedialog # Where it open to. # What the window is called. # What file types the user can choose between. first one is the defualt. (("what ever", "*.format"), ("what ever 2", "*.format2&q... Add solution -
TypeScript 2021-11-22 02:55:18
how to extract comments from word python
#!/usr/bin/env python # Given a .docx file, extract a CSV list of all tagged (commented) text # This is version 6.0 of the script # Date: 12 February 2020 import zipfile import csv from bs4 import BeautifulSoup as Soup import tkinter as tk from tkinter ... Add solution -
Python 2021-11-12 15:30:25
save file python tkinter
from tkinter import filedialog from tkinter import * win = Tk() filename = filedialog.asksaveasfilename(initialdir='/', title='Save File', filetypes=(('Text Files', 'txt.*'), ('All Files', '*.*'))) textContent = "I'm the text in the file" myfil... Add solution -
Python 2021-09-06 07:11:03
tkinter filedialog how to show more than one filetype
from tkinter import filedialog # To show multiple file types at the same time you need to # seperate the types with a space filedialog.askopenfilename(filetypes=[("Excel files", ".xlsx .xls")]) Add solution