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

   Á¶È¸ 2704   Ãßõ 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 758/5682
2015-12   1490984   ¹é¸Þ°¡
2014-05   4954493   Á¤ÀºÁØ1
2019-01   2572   ²Ù¶ì¿÷
2019-04   2572   Çϼ¿È£ÇÁ
2017-06   2572   epowergate
2019-12   2572   ³ªÆÄÀÌ°­½ÂÈÆ
2021-05   2572   ¹é·æ
2019-09   2572   ¸Þ¶Ñ±â°¡¸é¸Ç
2019-09   2572   ¼Õ¿ëÈ£
2020-08   2572   ¸¼ÀººÎö
2021-07   2573   »ê°ñ³óºÎ
2020-02   2573   °³³ä¸·¸·
2023-05   2573   ºí·ç¿µ»ó
2019-03   2573   vvonna
2021-12   2573   È­¶õ
2019-10   2573   ÁÖŹé
2020-05   2573   Á¦°¥±âõ
2019-01   2573   ¸Ó¸®°¨ÀÚ
2023-04   2573   VSPress
2019-02   2573   ¸Ó¶óÄ«´Âµ¥
2020-08   2574   Astarot
2022-04   2574   ºÎ»ê´ë»§