ÆÄÀ̽ã ÀßÇϽôºРÀúÁ»µµ¿ÍÁÖ¼¼¿ä ¤Ð..¤Ð

   Á¶È¸ 2723   Ãßõ 1    

 요즘 컴퓨터언어중에서 파이썬이란 수업듣고있는데요 여기까진 만들었는데 

과제내용이 이걸

GUI기반 수능처리 프로그램

-입력 내용을 CSV로 저장

-처리결과를 CSV로 저장

-GUI 기반 입력(입력, 검색, 추가, 편집): 기본데이터(수능번호)

-GUI기반 등급 계산(전과목, 5개 과목)


이렇게 만들라고하는데요  csv로저장해서 어떻게하는건지 프로그래밍추가좀 도와주실수있으신분 계신가요 ??

더이상여기서 못하겠습니다 ㅠㅠ

그리구 입력하고 검색창은 만들었는데 추가랑 편집버튼만들어서 어떻게 추가 편집시키는건가요 ??


from tkinter import *

window = Tk()
window.geometry("600x300")
window.title("객체지향기반 수능 처리 프로그램")

class Student :
    number = ""
    name = ""
    kor = ""
    math = ""
    eng = ""
    korh = ""
    tamname1 = ""
    tamsco1 = ""
    tamname2 = ""
    tamsco2 = ""
   
    def __init__(self, number, name, kor, math, eng, korh, tamname1, tamsco1, tamname2, tamsco2) :
        self.number = number
        self.name = name
        self.kor = kor
        self.math = math
        self.eng = eng
        self.korh = korh
        self.tamname1 = tamname1
        self.tamsco1 = tamsco1
        self.tamname2 = tamname2
        self.tamsco2 = tamsco2

    def  getNumber(self) :
            return self.number
   
    def  getName(self) :
            return self.name

    def  getKor(self) :
            return self.kor

    def  getMath(self) :
            return self.math

    def  getEng(self) :
            return self.eng

    def  getKorh(self) :
            return self.korh

    def  getTamname1(self) :
            return self.tamname1

    def  getTamsco1(self) :
            return self.tamsco1

    def  getTamname2(self) :
            return self.tamname2

    def  getTamsco2(self) :
            return self.tamsco2

def sarch() :
    num = entry.get()
    if num == "1901" :
        text.delete(1.0, END)
        text.insert(1.0, "%d   %s   %d     %d   %d    %d    %s:%d      %s:%d" % (student1.getNumber(), student1.getName(), student1.getKor(), student1.getMath(), student1.getEng(), student1.getKorh(), student1.getTamname1(), student1.getTamsco1(), student1.getTamname2(), student1.getTamsco2()))
    if num == "1902" :
        text.delete(1.0, END)
        text.insert(1.0, "%d   %s   %d     %d   %d    %d    %s:%d      %s:%d" % (student2.getNumber(), student2.getName(), student2.getKor(), student2.getMath(), student2.getEng(), student2.getKorh(), student2.getTamname1(), student2.getTamsco1(), student2.getTamname2(), student2.getTamsco2()))
    if num == "1903" :
        text.delete(1.0, END)
        text.insert(1.0, "%d   %s   %d     %d   %d    %d    %s:%d      %s:%d" % (student3.getNumber(), student3.getName(), student3.getKor(), student3.getMath(), student3.getEng(), student3.getKorh(), student3.getTamname1(), student3.getTamsco1(), student3.getTamname2(), student3.getTamsco2()))
    if num == "all" :
        text.delete(1.0, END)
        text.insert(1.0, "%d   %s   %d     %d   %d    %d    %s:%d      %s:%d\n%d   %s   %d     %d   %d    %d    %s:%d      %s:%d\n%d   %s   %d     %d   %d    %d    %s:%d      %s:%d" % (student1.getNumber(), student1.getName(), student1.getKor(), student1.getMath(), student1.getEng(), student1.getKorh(), student1.getTamname1(), student1.getTamsco1(), student1.getTamname2(), student1.getTamsco2(), student2.getNumber(), student2.getName(), student2.getKor(), student2.getMath(), student2.getEng(), student2.getKorh(), student2.getTamname1(), student2.getTamsco1(), student2.getTamname2(), student2.getTamsco2(), student3.getNumber(), student3.getName(), student3.getKor(), student3.getMath(), student3.getEng(), student3.getKorh(), student3.getTamname1(), student3.getTamsco1(), student3.getTamname2(), student3.getTamsco2()))
student1, student2, student3= None, None, None

student1 = Student(1901, "김도경", 91, 70, 84, 42, "지구과학1", 50, "지구과학2", 40)
student2 = Student(1902, "김선진", 57, 63, 72, 45, "생명과학1", 37, "생명과학2", 46)
student3 = Student(1902, "손성만", 70, 82, 47, 24, "물리1", 41, "물리2", 48) 


label1 = Label(window, text = '학번(전체 조회는 all)')
label2 = Label(window, text = ' 학번       이름      국어      수학   영어     한국사    탐구1               탐구2')
entry = Entry(window)
text = Text(window)
button1 = Button(window, text = '확인',command = sarch)
label1.place(x = 15, y = 13)
label2.place(x = 15, y = 43)
entry.place(x = 135, y = 13)
button1.place(x = 280, y = 10)
text.place(x = 16, y = 60)

window.mainloop()


임상일
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
ȲÁø¿ì 2019-06
gui = ±×·¡ÇÈ À¯Àú ÀÎÅÍÆäÀ̽º
ÀÌ°Å ´Ù ¸¸µå½Ã¸é ´Ù¸¥°Å´Â ²­ÀÔ´Ï´Ù.. ÇÏÇÏÇÏ


QnA
Á¦¸ñPage 830/5685
2015-12   1502914   ¹é¸Þ°¡
2014-05   4966504   Á¤ÀºÁØ1
2019-03   2720   »ê°ñ³óºÎ
2021-06   2721   È­Á¤Å¥»ï
2020-04   2721   ±è½ÂÇö1
2020-07   2721   ÆäÀÎÇÁ¸°
2021-01   2721   ¾ÈÇü°ï
2019-12   2721   MidasCustom¡¦
2021-01   2721   ±×¸ðµµ
2021-06   2721   ¸ÇȦȫ
2020-02   2721   ´ÃÆĶõ
2018-11   2721   ±èÁ¦¿¬
2018-09   2721   Smile
2020-12   2721   ÄÚ»Ô»ç³É
2019-08   2721   ±è°Ç¿ì
2020-04   2721   ¿©ÁÖ³ó¹Î76
2020-12   2721   ¹èȸ
2023-03   2721   µö¸¶Àεå
2018-11   2721   ·ù·ù·ù
2019-03   2721   ºí·ç½ºÄ«ÀÌ
2021-08   2721   ¹ÌÄ£°¨ÀÚ
2021-05   2721   ÀçÈ«ÀÌ