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

   Á¶È¸ 2691   Ãßõ 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 823/5680
2014-05   4945675   Á¤ÀºÁØ1
2015-12   1482371   ¹é¸Þ°¡
2020-04   2688   ÀÌ°ÇÈñ
2020-04   2688   ±×¸°
2017-06   2688   H4CHI
2021-05   2688   ÃÖ¿ëÈ£
2021-07   2688   woow1216
2022-08   2688   ÇÁ¶û
2022-09   2688   ·¹¹ÝÅͽº
2019-04   2688   ºÐ³ëÀÇ´Ù¿îÈú
2018-12   2689   chotws
2022-04   2689   philiippe
2023-05   2689   ¹«½î»Ôó·³
2019-11   2690   ¾Æ¶ó¾ß
2019-11   2690   ¸ÇȦȫ
2023-09   2690   ½´ÆÛÀ¢µð
2020-03   2690   ¾Æ±â°ßÀúÄ¿
2020-11   2690   ¸Þ°¡³¯¹é
2021-02   2690   MikroTikÀÌÁø
2020-12   2690   ÄÚ»Ô»ç³É
2018-11   2690   ·ù·ù·ù
2020-12   2690   ¹é¸¸½º¹°Çϳª