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 = wx.TextCtrl(panel) vbox.Add(self.email_label, flag=wx.LEFT | wx.TOP, border=10) vbox.Add(self.email_text, flag=wx.EXPAND | wx.LEFT | wx.RIGHT, border=10) # Mobile self.mobile_label = wx.StaticText(panel, label="Mobile:") self.mobile_text = wx.TextCtrl(panel) vbox.Add(self.mobile_label, flag=wx.LEFT | wx.TOP, border=10) vbox.Add(self.mobile_text, ___ _______ ______ _______ _________ ____ _____ _______.
________ ________ __________ _________ __________ _________ _______ ___ _______ ______ __________ _____.
____ _______ ____ _____ ______ ______ _______ __________.
_________ _______ _________ _________ _________.
_____ __________ ______ __________ ________ ____ ______ ________ ___ ____ __________.
_____ ___ ________ ____ _________ ____ ______ _________ _______.
____ ____ ___ ________ ________ ___ _____ ____ ___.
___ _________ ________ __________ __________ _____ _______ ______ ___ _________ ______ _____.
___ ____ __________ ________ ____ ___ ________ _________ ___.
________ ____ _______ ________ ____ _________ ________ __________ _____ ________.
__________ ______ _______ ____ ________ _______ ____ ______ ______ __________ _______ __________.
______ ____ _______ ______ ____.
_______ ________ __________ __________ _____ _______ ____ __________ __________.
______ _______ _______ ________ _______ ___ ____.
________ ___ _____ _______ ______ ____ ____ _______ ____ _________ ________.
________ _______ __________ ____ _________ _______ _______ _________ ____.
______ _______ ___ __________ ______ ________ _____ __________ _____ ___.
________ __________ _______ _______ _______ ______ __________ ____ _____.
_____ ________ ________ ________ __________.
______ _____ ___ __________ _________ _______ ______ ________ ____ _____ _____.
_____ _________ ____ _________ _____ _____ _____ ___ ____.
___ _____ _______ ________ ______ _____ _______ __________ _____ ___ ________.
________ ____ _________ ______ __________ ________ _____.
________ __________ _________ ____ _____ __________ ___ _________ ______ ______ _________.
_________ ___ _________ ____ __________ _______ ___.
_______ ____ __________ _____ ____ ___ ___ _______ _____ __________ _____.
_______ _____ __________ _________ _______ ________.
___ _______ ___ ____ _______ _______ _______.
____ _____ __________ ______ _____ __________ ___ ______.
____ __________ __________ ____ _______ __________ __________ ___ ___.
__________ _____ _____ _________ __________.
______ ____ _____ __________ _____ _____ ___ ____ ______ _______.
______ __________ ______ __________ ______ _______ __________ ________ _______ __________ __________.
______ ______ _________ ______ ______ _______ _________.
_____ _______ ________ ___ _______ ____ ___ ______ ___.
_______ ___ ______ ______ __________ _______ _________.
_____ ___ __________ _________ ________ _______ _________ ________.
_________ __________ __________ _______ __________ ________ ______ _______.
__________ _______ _____ ______ _____ ________ __________ ______ _________.
_____ ___ ___ ____ _________ ______ ______.
_________ _______ _________ _________ ______ _______.
______ _________ _______ _________ ______ _____ _____ _______.
________ _____ ________ _________ _____ _____ ________.
______ _________ ________ __________ ____ _____ ___ ____.
________ ________ _________ _________ _________.
_____ ______ _____ ___ __________ ___.
__________ ______ _______ _____ ____ ____.
______ ____ ____ ___ __________ _____ ___ _________ _____ _______ ____.
________ __________ _____ __________ _________ _________ _________ ______ _____.
____ _____ ________ _______ ______.
____ __________ _________ _________ _____ ___ _____ ________.
____ __________ _________ ______ _______ _______ ______ ______ _________ __________ ______ _________.
__________ ________ ______ ______ ____ __________ _____.
___ ______ __________ __________ _________ ____.
____ _______ ________ __________ _____ _________ _________ _________ _________ _______ _____ _________.
______ _____ ____ __________ ________ _______ _____.
___ _______ ________ _______ ____ ______ __________.
_______ __________ ________ ____ ________.
______ ____ ____ ___ ________ ____ ___ _________.
___ _______ __________ _______ ____ ________ ___ _________ _____ __________ ____.
_________ _________ ____ ___ ___ _______.
______ ______ _______ ___ ______ ______ _____ ___ __________ ______ ____.
________ _________ ______ __________ ________.
____ ________ _______ _______ ____.
_______ ________ ____ _____ _______ ________ __________ _________ __________ _____ _________.
____ ______ _______ ________ ____ _____ __________ _____ ___ ____ ____ __________.
________ _____ ___ ________ ______ ________ ____ _______ __________.
_________ __________ ______ ____ ____ _________ ____ __________.
___ ____ ______ ______ ___ _____ ________ ________ _________ ________ ____.
__________ _________ ____ ________ _________ _________ ___ _____ ________ ____.
__________ _____ ___ _______ _________ _______ _______ ____ ________ ____.
__________ ____ _________ ______ _____ _________.
______ ___ _____ ____ ___ _____.
____ _____ _________ ____ ____ ______ _____ ___ _____.
_______ _______ _____ ______ __________ _____ ___ ____ __________ _______ ____ _______.
______ __________ ________ ____ _____ ________ ______ ________ _________ ________.
___ ________ ______ ___ ____ ________.
____ ________ ________ ___ __________ _____ _______.
_______ ______ _______ __________ _________ _________ ___.
_________ ______ _________ ____ ______ ________ ___ ______ __________.
__________ _______ ___ _________ ___ ____ _________ __________.
________ __________ _____ ______ ___ _____ _________ ____.
___ ____ ______ ______ ___.
Get Full Answer on WhatsApp