Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

University of basrah

College of IT
Department of information systems

Advanced Payroll
Management System
Using The Python Language
Lecture By Dr: Haider M. Al-mashhadi

)‫نور طه‬,‫ياسين يعقوب‬,‫(وليد خالد‬:‫طالب‬


Contents

1. Introduction of programming.

2.Import tkinter and create Form.

3.Design the frame

4. Button and database (MySql)


1. Introduction of programming
2.Import tkinter and create Form.

• Before to create form we need first to


import library tkinter to the project

• Then in class we set the title


and the geometry of the
project and the background.
• And in main we define TK function and
class Payroll to create and running the
form
3.Design the frame
3.Design the frame

We know Label as Title in TopFrame1 and inside the brackets we know the following:
• font(_FontDescription)
• Text(Str)
• Bd(_ScreenUnits),
• Bg(background _Color),
• justify (Literal['left', 'center', 'right’])
3.Design the frame

-In topFrame2 we have 4 label and 3 Entry and 1


combo box

To insert combo box we have to import TTK from


tkinter library and make state ‘readonly’ to make
sure that cant change the text value that we put
inside combo box.
-And for inside the brackets we know the
following:
• text variable( Variable)
• fg(font color)
• Anchor(to define where text is positioned
relative to a reference point)
3.Design the frame

-In this frame we have treeview(Table),that


have all information about Employer. get it
from Database(MySQL).
-we have 11 Columns that all Column
Have (
column(
column: Tree view Column Id,
width: int = ...,
\anchor: _Anchor = CENTER)
)
-And text for heading of treeview(table)
4. Button and database (MySql)

• Add to SQL
4. Button and database (MySql)

• Update to SQL
4. Button and database (MySql)

• Delete to SQL
4. Button and database (MySql)

• Select to SQL
End of Project

You might also like