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: 7 additions & 4 deletions MAIN.PY
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Main file

from tkinter import *
import tkinter as tk
from tkinter import*
import csv
import os

import sys
file=open("records.csv","a")
file.close()
def close():
Expand All @@ -29,16 +30,18 @@ def onscroll(axis, *args):
else:
assert False, f"axis {axis} is incorrect, use 'x-axis' or 'y-axis'"

win=Tk()
win=tk.Tk()
win.title("EMS")
win_width = 350
win_height = 480
win_resolution = str(win_width)+"x"+str(win_height)
win.geometry(win_resolution)
win.config(bg="orange")
win.resizable(0,0)
image = tk.Image('photo',file ='C:\\Users\\logo.gif')

if "nt" == os.name:
win.wm_iconbitmap("logo.ico")
win.tk.call('wm','iconphoto',win._w,image)
else:
win.wm_iconbitmap("@logo.xbm")
Label(win,text="Employee Management System",bg="brown",fg="white",font=("Georgia",16)).pack(pady=10)
Expand Down
44 changes: 44 additions & 0 deletions MAIN.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
['MAIN.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='MAIN',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
![ICON](/logo.ico)
![ICON](/logo.gif)
*Employee Management System
---

Expand Down
Loading