Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CrickFev.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Metadata-Version: 1.0
Name: CrickFev
Version: 0.1
Summary: CLI tool for live update of cricket matches
Home-page: UNKNOWN
Author: Shubham Maddhashiya
Author-email: shubhamsipah@iitkgp.ac.in
License: UNKNOWN
Description-Content-Type: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
15 changes: 15 additions & 0 deletions CrickFev.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
README.md
CrickFev/__init__.py
CrickFev/main.py
CrickFev/utils.py
CrickFev.egg-info/PKG-INFO
CrickFev.egg-info/SOURCES.txt
CrickFev.egg-info/dependency_links.txt
CrickFev.egg-info/entry_points.txt
CrickFev.egg-info/requires.txt
CrickFev.egg-info/top_level.txt
CrickFev/scripts/__init__.py
CrickFev/scripts/levent.py
CrickFev/scripts/lscore.py
CrickFev/scripts/lscorecard.py
CrickFev/scripts/score.py
1 change: 1 addition & 0 deletions CrickFev.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

7 changes: 7 additions & 0 deletions CrickFev.egg-info/entry_points.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

[console_scripts]
score=CrickFev.scripts.score:cli
levent=CrickFev.scripts.levent:main
lscore=CrickFev.scripts.lscore:main
lscorecard=CrickFev.scripts.lscorecard:main

4 changes: 4 additions & 0 deletions CrickFev.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Click
requests
urllib3
bs4
1 change: 1 addition & 0 deletions CrickFev.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CrickFev
Binary file added CrickFev/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added CrickFev/scripts/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added CrickFev/scripts/__pycache__/score.cpython-36.pyc
Binary file not shown.
50 changes: 50 additions & 0 deletions CrickFev/scripts/cric.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
from tkinter import *
from levent import *
from lscore import *
import tkinter.messagebox

def leftclick(ch):
tkinter.messagebox.showinfo('Live Score',score[ch])


n=len(tableHeads)
m=len(tableData)
matches={}
score={}
for i in range(n):
matches[i]=str(tableHeads[i].h2.text)

for i in range(m):
score[i]=tableData[i].section.text
print(score[i])



class Buttons:

def __init__(self,master):
getLiveEvents()
frame=Frame(master)
frame.pack()
ch= int()
label=Label(frame,text="Live Events",fg="red")
label.grid()
for i in range(n):
button=Button(frame,text=matches[i],fg="blue", )
button.grid(columnspan=5,sticky=W)
getScore(i)

label=Label(frame,text="Enter the event number",fg="red").grid()

E1=Entry(frame,bd=5,width=3,textvariable=ch)
E1.grid()
print(E1.get())
enter=Button(frame,text="Enter",fg="green",bg="violet",command=lambda:leftclick(ch))
enter.grid()


root = Tk()

b = Buttons(root)
root.mainloop()

1 change: 1 addition & 0 deletions CrickFev/scripts/levent.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def getLiveEvents():
click.secho("Events Going On Live Right Now", bold=True, fg='green')
for ix in range(0, len(tableHeads)):
click.secho("\t" + str(ix+1) + "| " + str(tableHeads[ix].h2.text), fg='cyan')


@click.command(help='Events Going On Live Right Now--(cricket)')

Expand Down