This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tutorial playlist https://www.youtube.com/playlist?list=PLCQT7jmSF-LrwYppkB3Xdbe6QC81-ozmT | |
import tkinter as tk | |
from pathlib import Path | |
from tkinter import ttk | |
from TkinterDnD2 import DND_FILES, TkinterDnD | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the Link to my youtube video https://www.youtube.com/watch?v=vBzoLCKQi8U | |
import tkinter as tk | |
import webbrowser | |
from tkinter import ttk | |
def open_link(event): | |
"""Opens the URL on a treeview row in a new browser""" | |
selected_row = treeview_urls.selection() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert Treasury price to decimal in python | |
# calculating US treasury pricing in python | |
def treasury_to_decimal(price): | |
""" | |
Converts a treasury priced in 32nds into a decimal. This works for | |
treasurys priced up to 3dp i.e. "99-126" | |
""" | |
price_split = price.split("-") | |
integer_part = int(price_split[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
from bs4 import BeautifulSoup | |
import requests as re | |
import pandas as pd | |
# This code is from my youtube video: https://www.youtube.com/watch?v=ii7CfpdRPYA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.Data.Analysis; | |
using ServiceStack; | |
using ServiceStack.Text; | |
namespace StockPricesProject | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Net; | |
using Microsoft.Data.Analysis; | |
namespace StockProject | |
{ | |
// https://www.youtube.com/watch?v=ULGMStkOf7Y | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Youtube Link: https://www.youtube.com/watch?v=PgLjwl6Br0k | |
import tkinter as tk | |
from tkinter import filedialog, messagebox, ttk | |
import pandas as pd | |
# initalise the tkinter GUI | |
root = tk.Tk() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from tkinter import messagebox | |
from tkinter import ttk | |
""" | |
Useful Links: | |
https://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter Most useful in my opinion | |
https://www.tutorialspoint.com/python/python_gui_programming.htm | |
https://anzeljg.github.io/rin2/book2/2405/docs/tkinter/index.html |