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

   Á¶È¸ 2697   Ãßõ 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 4858/5682
2015-12   1488897   ¹é¸Þ°¡
2014-05   4952348   Á¤ÀºÁØ1
2023-04   2700   jinwz
2019-05   2699   È­¶õ
2021-06   2699   È­Á¤Å¥»ï
2020-02   2699   Yune
2020-03   2699   Christopher
2020-01   2699   Espial
2020-04   2699   ĵÀ§µå
2018-12   2699   chotws
2023-10   2699   ³ªÀ̾¥guy
2020-03   2699   ¿µ»êȸ»ó
2019-09   2699   catstyle
2021-04   2699   AMDºô·±
2020-11   2699   ÆÄÇÇǪÆä
2020-12   2699   ¹é¸¸½º¹°Çϳª
2020-09   2699   Á¤»ó¹é
2019-03   2699   Won³«¿¬
2020-08   2699   GPGPU
2021-07   2699   ÃÖº´Èñ1
2019-05   2698   ÇູÇϼ¼
2020-08   2698   ¾ËÄÉÀ̸Ó