Develop a GUIll (details given below) by Using wxPythonandTkinter, compare the code complexity of both and give your observations.
Use suitable components like text box, combo box, list, Radio Button, Check Box, Buttons, etc. to develop the GUI
Details of GUI: the GUI should accept the personal details of an Employee like Employee Name, DOB, Residential Address, Email, Mobile, Blood Group (A+, B+, O+, A-, B-, O-, etc.), Nature of Job (Permanent, Temporary, contractual, daily wage etc.), Diabetic (Yes, NO), Health Summary etc.
When creating a GUI for managing personal details of an employee, wxPython and Tkinter both provide robust ways to develop such interfaces in Python. Below is a comparative discussion of how both frameworks can be used to design this GUI and a comparison of their code complexity.
wxPython Code
import wx class EmployeeForm(wx.Frame): def __init__(self, parent, title): super().__init__(parent, title=title, size=(500, 400)) panel = wx.Panel(self) vbox = wx.BoxSizer(wx.VERTICAL) # Employee Name self.name_label = wx.StaticText(panel, label="Employee Name:") self.name_text = wx.TextCtrl(panel) vbox.Add(self.name_label, flag=wx.LEFT | wx.TOP, border=10) vbox.Add(self.name_text, flag=wx.EXPAND | wx.LEFT | wx.RIGHT, border=10) # DOB self.dob_label = wx.StaticText(panel, label="Date of Birth:") self.dob_picker = wx.adv.DatePickerCtrl(panel) vbox.Add(self.dob_label, flag=wx.LEFT | wx.TOP, border=10) vbox.Add(self.dob_picker, flag=wx.EXPAND | wx.LEFT | wx.RIGHT, border=10) # Address self.address_label = wx.StaticText(panel, label="Residential Address:") self.address_text = wx.TextCtrl(panel, style=wx.TE_MULTILINE) vbox.Add(self.address_label, flag=wx.LEFT | wx.TOP, border=10) vbox.Add(self.address_text, flag=wx.EXPAND | wx.LEFT | wx.RIGHT, border=10) # Email self.email_label = wx.StaticText(panel, label="Email:") self.email_text _____ ________ _______ __________ ________.
______ _________ _______ ___ ___ _________ _______ _______ _____ _______ ____ _________.
____ ________ ___ ______ _________.
_______ _____ _________ _______ ______ __________ ___ ________ _________ ___.
__________ ________ __________ ____ _____.
__________ ________ ________ _______ ______ __________ ______ _________ ___ ____ ________ ____.
_________ _______ ________ _________ __________.
______ ________ ________ ___ ____ __________ _________.
_____ _______ ____ _____ ___ ______ ______ ______ _____ __________.
____ ___ _______ _______ ______ _______ ________ _______.
___ ________ _________ _______ _____ _____ _________ ____.
_______ ______ __________ ________ __________ _______ _______ _________ ____ _____ _____ _________.
______ _______ _________ ____ ________ ____ _________ ____ _______ ____ ____ _______.
_______ _________ ________ ________ ____ ______ ________ __________.
____ __________ _______ _______ ___ _________ _________ ____ ____.
_________ ________ _________ _________ ______ _______ ____.
_____ _______ _________ _________ ______ ___ ______ __________ _____ ___ ___ ____.
_______ ________ ____ _________ ____.
______ ______ __________ ________ _______ ____ _____.
________ _______ __________ ___ ____.
______ ____ ____ _________ _________ __________ _________ ____ ___ __________ _______.
_________ ______ __________ ___ _______ ___ _________ _______ _______ ______ __________ ___.
_____ _____ ______ ____ _______.
___ _________ _______ ______ ______ __________ _______ _____ ______ ___.
_________ ___ __________ _____ ___ ________ ________ ___ _________.
__________ ____ __________ ______ ___ _______ _______ _____ _______ _________ _____.
__________ ___ ________ ________ __________ _____ _________ ______ ____ _________.
_______ _______ ______ _________ ____ _________.
________ _________ ________ _______ __________ ______ ______ _________.
________ ____ _____ _______ ________ _________ ___ ________ _________ _________ ___ __________.
_______ _______ ________ _________ _____ __________ ___.
___ _______ ________ _____ ________ __________ ___ ____ _____ ________ _______.
______ _______ ____ ____ __________ ______ _______ ______ _____ ______.
_______ __________ __________ ____ ________ _______ ______ ________ _______ _________ ______ _________.
________ _________ ________ _______ __________ ______ ___ ___ ____ ____ ______ __________.
___ ______ _________ __________ ______ ____ ______ _____ _____ ______.
______ __________ __________ _________ ______ __________ __________ _____ ___ ______ _________.
___ ____ ________ ____ ___ ____ __________ ______ ________.
_______ _________ __________ _____ _______ ___ _____.
__________ ______ _________ _________ _______ _________ _________ __________ _________ ________ ___.
_______ ___ _________ ________ ________.
_____ ______ _____ ________ ____ _________ ______ __________.
_____ ________ __________ __________ _______ _____ ________ ____ __________.
________ ___ _____ ___ ____ ________ ____.
____ ________ ____ ______ ________.
______ ________ ______ ______ ______ __________ _________.
_________ ___ _______ _____ ____ _____ ___ ______ ____.
_________ ________ ___ ______ _________ _________ ______ _________ ________.
__________ _______ ____ ______ ______ _____ ___ __________.
_______ ___ _____ _________ ________ __________ _________ _____.
________ ___ ______ _________ ___ ________ __________ ___ _________ _______ _____.
_____ _____ _____ _____ ___ __________ _________ ____.
_________ _____ __________ __________ _________.
_________ ___ ________ _____ ______ ____ _________ ____ __________ ______ __________.
_______ _________ ___ ________ ______ _____ _______ ______ ___ _____.
_________ _____ ________ _______ _____ ____ _____.
______ ___ ______ _______ ______.
_______ _______ _________ _________ ____ ___ _______.
_________ _______ ________ __________ ______ ____ ________ ____ ___ _________.
______ _______ ________ _____ _____ ______.
_________ __________ ________ ________ _____ __________ _____ _____ _______.
_______ ________ _________ _______ ________ ______ ______ ______ ______.
__________ ________ ___ ___ _________ ____ _____.
______ _________ _____ __________ ___ _________ ___ ________.
__________ ________ ___ ___ ___ _______ _______ _______.
_____ _________ ______ _______ ____ ______ _____ _____ _____ __________ __________ ___.
_______ ________ _____ ___ ______ _____ _______ ___ ___.
______ ___ __________ ___ _____ __________ _____ __________ ________ __________ ___.
__________ _______ ___ _____ _______.
__________ ________ _____ ____ ___ __________ _________ _____.
__________ ____ __________ ___ ____.
___ _________ ________ __________ _____ _____ ________ ________.
________ ________ __________ ________ _________ ______ _________ _______ ____ ______ __________.
____ ______ ______ _____ _________ _________ _______ __________ ___ ____ _______.
__________ ____ _______ ____ _________ ___ ______ _________ ___ _______ ___ ________.
_______ _____ ____ _______ ________.
_______ _______ _________ ___ __________ _________ ________ _____ ________ ______.
_______ ____ _____ ________ _________.
__________ _______ _____ ____ ________ ___ ________ ________.
_______ ____ __________ ____ _____ ____ ________.
__________ ___ _______ __________ ____ __________ _____ ______ ____ ________.
_____ _______ _________ ______ _________ _______ _____ _________ _____ _____ ______.
____ _________ _____ _____ _____.
___ ____ __________ __________ ___ _____ __________ _______ __________.
_________ ______ _______ ______ ____ __________.
Get Full Answer on WhatsApp