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
# -*- coding: utf-8 -*- | |
""" Deletes all tweets below a certain retweet threshold. | |
""" | |
import tweepy | |
from datetime import datetime | |
# Constants | |
CONSUMER_KEY = '' |
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
class Game(): | |
''' | |
Tic Tac Toe terminal game | |
''' | |
def __init__(self): | |
'''Set initial variables and start game''' | |
self.grid = """ | |
1 2 3 | |
|| || |
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
class Game(): | |
''' | |
Tic Tac Toe terminal game | |
''' | |
def __init__(self): | |
'''Set initial variables and start game''' | |
self.grid = """ | |
1 2 3 | |
|| || |
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 | |
# Lots of tutorials have from tkinter import *, but that is pretty much always a bad idea | |
from tkinter import ttk | |
import abc | |
class Menubar(ttk.Frame): | |
"""Builds a menu bar for the top of the main window""" | |
def __init__(self, parent, *args, **kwargs): | |
''' Constructor''' | |
ttk.Frame.__init__(self, parent, *args, **kwargs) |