Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question : Python 2.7 Program uses a 2-column layout with a combo box, 3 radio b

ID: 3756387 • Letter: Q

Question

Question: Python 2.7 Program uses a 2-column layout with a combo box, 3 radio buttons, and a regular button...

Python 2.7

Program uses a 2-column layout with a combo box, 3 radio buttons, and a regular button all placed on the left column and a regular wx list control on the right. Your interface should look more or less like this. The list control should have column headers of student id, last and first names, hours completed, a calculated gpa field, and major, all from the students table, and the advisor's name from the advisors table. Here what things should look like when the program opens (it need not look exactly like this, but generally things should be arranged similarly).

The combo box should offer these choices: Select Major, BUS, CIT, EET, WEB. The user must select a legit major before anything will display. Your user chooses a major, clicks one of the radio buttons, then clicks the button. Based on the radio button choice, for the selected major your code should display all the students with that major, all students with that major who have 45 hours or more (they're near graduation and perhaps need extra info on that last set of classes), or all the students with that major who have a gpa less than a 2.0 (you may want to recommend some tutoring or notify their advisor). Here we show how to display all of the EET majors.

Here we show all the CIT majors with a gpa of less than 2.0

Note: You should recall that the gpa calculation is gpa_points divided by hrs-attempted (not hours completed). For full credit you must use the widgets listed above and a 2 column layout, you must round the gpa calculculation to 1 decimal place, and you must use an inner join of the 2 tables to get the advisor name.

' Student Data ID Last Name First Name Hrs Comp. GPA Major Advisor Select Major Show All O More than 44 hrs Less Than 2.0 gpa Display Info

Explanation / Answer

Python Program :

from tkinter import *

root = TK()

root.title("Student Data")

root.geometry('{}*{}'.format(500,400))

def_init_(self,parent):

self.parent=parent

self.F1=Frame(parent)

self.F1.pack()

self.l1=Label(self.F1,text="Select Major").grid(column=1, row=0)

self.str=Tkinter.StringVar()

self.l1=combobox(win, width=12, textvariable=string)

sub['values]=(CIT,BUS,EET,..)

sub.grid(column=1,row=1)

sub.current(0)

suject=self.l1

window.mainloop

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote