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

   Á¶È¸ 2673   Ãßõ 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 1274/5677
2014-05   4937441   Á¤ÀºÁØ1
2015-12   1474431   ¹é¸Þ°¡
2019-06   2771   õ»óõÇÏ
2019-06   2674   ·çºñ¾Æºü
2019-06   4901   »õ·Î¿îÂ÷¿ø
2019-06   2915   ·ù·ù·ù
2019-06   3705   2CPUÃÖÁÖÈñ
2019-06   2575   Á¤À¯¹Ì
2019-06   2917   ¼º±â»ç
2019-06   3984   ±×¸°
2019-06   3000   ÇູÇϼ¼
2019-06   3382   ¾ØµåÀ¯Àú
2019-06   3316   hurricane
2019-06   2783   ¿©ÁÖ³ó¹Î76
2019-06   3969   ÇãÀα¸¸¶Æ¾
2019-06   2457   niecol
2019-06   6209   ÅëÅë9
2019-06   3786   ±è°Ç¿ì
2019-06   3051   ApertureSci¡¦
2019-06   7131   DDDIE
2019-06   4399   justin1
2019-06   3242   izegtob