Skip to content

Instantly share code, notes, and snippets.

View pressure679's full-sized avatar

Vittus Mikiassen pressure679

View GitHub Profile
from tkinter import *
from tkinter import filedialog
from tkinter import *
from tkinter import ttk
from tkinter.filedialog import askopenfilename
root = Tk()
name = ""
def OpenFile():
name = askopenfilename(initialdir="C:/Users/Batman/Documents/Programming/tkinter/", filetypes =(("Text File", "*.txt"),("All Files","*.*")), title = "Choose a file." )
print (name)
# From https://stackoverflow.com/questions/25028717/run-a-shell-script-from-python-gui
# assuming Python3
import tkinter as tk
import subprocess as sub
WINDOW_SIZE = "600x400"
root = tk.Tk()
root.geometry(WINDOW_SIZE)
# Python program to create
# a file explorer in Tkinter
# import all components
# from the tkinter library
from tkinter import *
# import filedialog module
from tkinter import filedialog
@pressure679
pressure679 / Tkinter_filedialog.py
Created October 19, 2020 13:35 — forked from Yagisanatode/Tkinter_filedialog.py
Python 3 - Open file dialog window in tkinter with filedialog
#! Python 3.4
"""
Open a file dialog window in tkinter using the filedialog method.
Tkinter has a prebuilt dialog window to access files.
This example is designed to show how you might use a file dialog askopenfilename
and use it in a program.
"""
package main
import (
"fmt"
"os"
"io/ioutil"
"strconv"
"flag"
"github.com/DavidBelicza/TextRank"
)
func main() {
package main
import (
"fmt"
"os"
"io/ioutil"
"flag"
"github.com/DavidBelicza/TextRank"
"github.com/DavidBelicza/TextRank/rank"
)
func main() {
package main
import (
// "io"
// "bufio"
// "strings"
// "strconv"
// "github.com/alixaxel/pagerank"
// "github.com/boltdb/bolt"
"fmt"
"io/ioutil"
package main
import (
"fmt"
"os"
// "bufio"
"io/ioutil"
"flag"
"github.com/pressure679/rake"
"math"
)
package main
import (
"strings"
"flag"
"os"
"bufio"
"time"
"image/png"
"math/rand"
package main
import (
"fmt"
"bufio"
// "io/ioutil"
"os"
"flag"
"strings"
"github.com/ahmdrz/goinsta"