mainWindow.py 49.3 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5 import *
from PyQt5.QtCore import *
from PyQt5 import uic

from time import sleep
import dialog
import drone


#UI파일 연결, 단, UI파일은 Python 코드 파일과 같은 디렉토리에 위치해야한다.
mainWindow_ui = uic.loadUiType("ui\mainWindow.ui")[0]

class CharacteristicWindow(QMainWindow):
    nextCount = 0
    def __init__(self, parent):
        super(CharacteristicWindow, self).__init__(parent)
        characteristic_ui = 'ui\characteristic.ui'
        uic.loadUi(characteristic_ui, self)
        
        self.statusBar().showMessage('Characteristic', 3000)

        self.show()
        self.tBrowser.setStyleSheet('font-size:15px;')
        self.tBrowser.append("""<font color='blue'>[ Next ]버튼을 눌러주세요.</font>""")
        self.pButton_Next.clicked.connect(self.SetNext)
        self.pButton_Main.clicked.connect(self.GoMain)     
        self.pButton_Start.clicked.connect(self.GoStart)

    def SetNext(self) :
        
        if self.nextCount == 0 :
            self.nextCount += 1
            self.tBrowser.clear()
            self.tBrowser.append("""[ Keyword : <b>글자, 자음, 모음</b> ] """)
        elif self.nextCount == 1 :
            self.nextCount += 1
            self.tBrowser.append(
                """<br><br>한글은 조선 시대 세종대왕께서 만드신 <u>글자 체계</u>로, 한국어의 기록을 위해 제작되었습니다.""")            
        elif self.nextCount == 2 :
            self.nextCount += 1
            self.tBrowser.append(
                """<br>현대 한글을 기준으로,<br><u>자모</u>에서 글자, 글자에서 단어, 단어에서 문장으로 확장됩니다.""")
        elif self.nextCount == 3 :
            self.nextCount += 1
            self.tBrowser.append(
                """<br>한글은 기본적으로 <u>자음</u>과 <u>모음</u>으로 구성되는데,<br>자음은 기본 자음 14자, 기본 자음들의 결합으로 만들어진 겹자모 5자로 <br>자음은 19자로 구성됩나다.""")
        elif self.nextCount == 4 :
            self.nextCount += 1
            self.tBrowser.append(
                """모음은 기본 모음 10자, 이중모음 11자로 <br>모음은 21자로 구성되어<br>총 24자의 기본자모들이 합쳐져서 40자의 자모를 구성합니다.""") 
        elif self.nextCount == 5 :
            self.nextCount += 1
            self.tBrowser.append(
                """<br>보편적인 글자는 자모의 결합인 모아쓰기를 기준으로 이루어지며<br>한 글자는 [ 초성 + 중성 ] 혹은 [초성 + 중성 + 종성 ]의 형태로 이루어져 있습니다.""")
        elif self.nextCount == 6 :
            self.nextCount += 1
            self.tBrowser.append(
                """초성과 종성에는 자음이 오고, 중성에는 모음이 자리합니다.<br>(종성에는 예외적으로 쌍자음 이외의 겹자음들이 존재합니다.)""")
        elif self.nextCount == 7 :
            self.nextCount += 1
            self.tBrowser.append(
                """<br><br>+) <br>한글은 모아쓰기로 인해 경우의 수가 다른 글자보다 큽니다.<br>따라서 전산화 및 폰트 제작에 많은 노력이 들어갑니다.""")              
        else :
            self.pButton_Next.setText('End')
            pass

    def GoMain(self) :
        self.nextCount = 0
        self.close()
        firstWindow.show()
        firstWindow.statusBar().showMessage('Main', 3000)
    
    def GoStart(self) :
        self.nextCount = 0
        self.close()
        startWindow = StartWindow(self)
        startWindow.show()

class IntroWindow(QMainWindow):

    nextCount_intro = 0
    def __init__(self, parent):
        super(IntroWindow, self).__init__(parent)
        intro_ui = 'ui\introduction.ui'
        uic.loadUi(intro_ui, self)

        self.statusBar().showMessage('Introduction', 3000)

        self.show()
        self.tBrowser.setStyleSheet('font-size:15px;')
        self.tBrowser.append("""<font color='blue'>[ Next ]버튼을 눌러주세요.</font>""")
        self.pButton_Next.clicked.connect(self.SetNext)
        self.pButton_Main.clicked.connect(self.GoMain)
        self.pButton_Start.clicked.connect(self.GoStart)

    def SetNext(self) :
        if self.nextCount_intro == 0 :
            self.nextCount_intro += 1
            self.tBrowser.clear()
            self.tBrowser.append("""[ Keyword : <b>, 궁서체, 획</b> ] """)
        elif self.nextCount_intro == 1 :
            self.nextCount_intro += 1
            self.tBrowser.append(
                """<br><br>궁서체 서예는 다음과 같은 특성을 가지고 있습니다.""")            
        elif self.nextCount_intro == 2 :
            self.nextCount_intro += 1
            self.tBrowser.append(
                """<br><br><b>1. 하나의 글자는 다른 글자와 <u>독립적</u>으로 작성됩니다.</b>""")
        elif self.nextCount_intro == 3 :
            self.nextCount_intro += 1
            self.tBrowser.append(
                """<br><b>2. 모음은 크게 <u>'ㅣ' 파생</u>,  <u>'ㅡ' 파생</u>,  <u>'ㅢ' 파생</u> 3가지로 나눌수 있습니다.</b>""")
        elif self.nextCount_intro == 4 :
            self.nextCount_intro += 1
            self.tBrowser.append(
                """<br>[ 'ㅣ' 파생 ]<br>자음의 오른쪽에 위치합니다.<br>파생 기준인 'ㅣ'에서 추가되는 획의 위치에 따라 내향모음, 외향모음으로 구분됩니다.<br><br>'ㅣ' 외향 파생 모음 : ㅏ ㅑ ㅐ ㅒ ㅣ<br>'ㅣ' 내향 파생 모음 : ㅓ ㅕ ㅔ ㅖ""")
        elif self.nextCount_intro == 5 :
            self.nextCount_intro += 1
            self.tBrowser.append(
                """<br>[ 'ㅡ' 파생 ]<br>자음의 아래쪽에 위치합니다.<br>파생 기준인 'ㅡ'에서 추가되는 획의 위치에 따라 내향, 외향으로 구분됩니다.<br><br>'ㅡ' 외향 파생 모음 : ㅡ  ㅜ  ㅠ <br>'ㅡ' 내향 파생 모음 : ㅗ  ㅛ""")
        elif self.nextCount_intro == 6 :
            self.nextCount_intro += 1
            self.tBrowser.append(
                """<br>[ 'ㅢ' 파생 ]<br>자음의 오른쪽과 아래쪽 동시에 위치합니다.<br>특이하게 'ㅢ'파생은 두가지 모음의 결합으로 형성됩니다.<br>파생 기준인 하단부의 'ㅡ'에서 추가되는 획의 위치에 따라 내향, 외향으로 구분됩니다.<br><br>'ㅢ' 외향 파생 모음 :  ㅟ  ㅝ  ㅞ  ㅢ <br>'ㅢ' 내향 파생 모음 :  ㅚ  ㅘ  ㅙ <br><br>한 글자 내의 모음은 자음에 따라 변화하지 않습니다.""")
        elif self.nextCount_intro == 7 :
            self.nextCount_intro += 1
            self.tBrowser.append(
                """<br><b>3. 자음은 아래와 같은 <u>기본 자음</u>에서 파생됩니다.</b><br><br> ['ㄱ' 파생] : ㄱ  ㅋ  ㄲ<br>['ㄴ' 파생] : ㄴ  ㄷ  ㄹ  ㅌ  ㄸ<br>['ㅁ' 파생] : ㅁ  ㅂ  ㅍ  ㅃ<br>['ㅅ' 파생] : ㅅ  ㅈ  ㅊ  ㅆ  ㅉ<br>['ㅇ' 파생] : ㅇ  ㅎ<br><br>자음은 마지막 획이 다음에 오는 외향 모음과 수직일 경우 모양이 변화할 수있습니다.""")
        elif self.nextCount_intro == 8 :
            self.nextCount_intro += 1
            self.tBrowser.append(
                """<br>4. 한글의 모아쓰기의 구조로 인해 모든 글자는 <br><b>[ 초성 + 중성 ]</b>  or  <b>[ 초성 + 중성 + 종성 ]</b><br>형태를 가집니다.<br><br> [ 초성 + 중성 ] 형태의 글자는 [ 초성 + 중성 + 종성] 형태의 글자와 다르게<br> 단순히 비율적으로 종성의 부분만큼 늘어납니다.""")
        else :
            self.pButton_Next.setText('End')

    def GoMain(self) :
        self.nextCount_intro = 0
        self.close()
        firstWindow.statusBar().showMessage('Main', 3000)
        firstWindow.show()
    
    def GoStart(self) :
        self.nextCount_intro = 0
        self.close()
        startWindow = StartWindow(self)
        startWindow.show()

class PracticeWindow(QMainWindow):
    def __init__(self, parent):
        super(PracticeWindow, self).__init__(parent)
        practice_ui = 'ui\practice.ui'
        uic.loadUi(practice_ui, self)
        
        self.statusBar().showMessage('practice', 3000)
        self.setWindowTitle('Calligraphy Assist Program By Drone')

        self.show()
        self.ConnectButton()

    def ConnectButton(self) :
        self.pButton_Main.clicked.connect(self.GoMain) 
        self.pButton_Start.clicked.connect(self.GoStart)
        self.pButton_point0.clicked.connect(self.GoPoint0)
        self.pButton_point1.clicked.connect(self.GoPoint1)
        self.pButton_point2.clicked.connect(self.GoPoint2)
        self.pButton_point3.clicked.connect(self.GoPoint3)
        self.pButton_horizontal.clicked.connect(self.GoHorizontal)
        self.pButton_vertical.clicked.connect(self.GoVertical)
        self.pButton_diagonal_left.clicked.connect(self.GoDiagonalLeft)
        self.pButton_diagonal_right.clicked.connect(self.GoDiagonalRight)
        self.pButton_curve_left.clicked.connect(self.GoCurveLeft)
        self.pButton_curve_right.clicked.connect(self.GoCurveRight)

    def GoPoint0(self) :
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_practice\point0 (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("수직으로 붓을 놓습니다.<br>가볍게 점을 찍고<br>붓을 가볍게 뗍니다.<br><br><b>드론 학습 지원X</b>")

    def GoPoint1(self) :
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_practice\point1 (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("종이와 <b>45°</b>가 되게 <br>붓을 눕혀 놓습니다.<br>가볍게 점을 찍고<br>붓을 가볍게 뗍니다.<br><b>드론 학습 지원X</b>.")      #라벨에 텍스트추가

    def GoPoint2(self) :
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_practice\point2 (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("종이와 <b>45 °</b>가 되게 <br>붓을 대각선으로 눕혀서 <br> 놓습니다.<br>붓을 가볍게 뗍니다.<br><b>드론 학습 지원X</b>")      #라벨에 텍스트추가

    def GoPoint3(self) :
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_practice\point3 (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("종이와 <b>45 °</b>가 되게 <br>붓을 대각선으로 눕혀서 <br>위로 놓습니다.<br>붓을 가볍게 뗍니다.<br><b>드론 학습 지원X</b>")      #라벨에 텍스트추가


    def GoHorizontal(self) :
        _dialog = dialog.Dialog(self) #다이얼로그 생성
        pixmap = QPixmap("ui\image_practice\horizontal (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("붓을 가볍게 놓습니다.<br>우측으로 이동합니다.<br>붓을 가볍게 뗍니다.")      #라벨에 텍스트추가
        _dialog.show()
        _dialog.pButton_drone.clicked.connect(drone.Move_Right)

    def GoVertical(self) :
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_practice\_vertical (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("붓을 가볍게 놓습니다.<br>아래측으로 이동합니다.<br>붓을 가볍게 뗍니다.")      #라벨에 텍스트추가
        _dialog.pButton_drone.clicked.connect(drone.Move_Down)

    def GoDiagonalLeft(self) :
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_practice\diagonal_left (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("붓을 가볍게 놓습니다.<br>좌측 아래로 이동합니다.<br>붓을 가볍게 뗍니다.")      #라벨에 텍스트추가
        _dialog.pButton_drone.clicked.connect(drone.Move_DiagonalLeft)

    def GoDiagonalRight(self) :
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_practice\diagonal_right (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("붓을 가볍게 놓습니다.<br>우측 아래로 이동합니다.<br>붓을 가볍게 뗍니다.")      #라벨에 텍스트추가
        _dialog.pButton_drone.clicked.connect(drone.Move_DiagonalRight)

    def GoCurveLeft(self) :
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_practice\curve_left (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("붓을 가볍게 놓습니다.<br>좌측으로 호를 그립니다.<br>붓을 가볍게 뗍니다.")      #라벨에 텍스트추가
        _dialog.pButton_drone.clicked.connect(drone.Move_CurveLeft)        

    def GoCurveRight(self) :
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_practice\curve_right (2)") #이미지 생성 
        _dialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        _dialog.text_0.setText("붓을 가볍게 놓습니다.<br>우측으로 호를 그립니다.<br>붓을 가볍게 뗍니다.")      #라벨에 텍스트추가
        _dialog.pButton_drone.clicked.connect(drone.Move_CurveRight) 

    def GoMain(self) :
        self.close()
        firstWindow.show()
        firstWindow.statusBar().showMessage('Main', 3000)

    def GoStart(self) :
        self.close()
        startWindow = StartWindow(self)
        startWindow.show()

class StrokeWindow(QMainWindow):
    def __init__(self, parent):
        super(StrokeWindow, self).__init__(parent)
        stroke_ui = 'ui\stroke.ui'
        uic.loadUi(stroke_ui, self)
        
        self.statusBar().showMessage('stroke', 3000)
        self.setWindowTitle('Calligraphy Assist Program By Drone')

        self.show()
        self.ConnectButton()

    def ConnectButton(self) :
        self.pButton_Main.clicked.connect(self.GoMain) 
        self.pButton_Start.clicked.connect(self.GoStart)
        self.pButton_s_m.clicked.connect(self.GoSoftToMid)
        self.pButton_s_h.clicked.connect(self.GoSoftToHard)
        self.pButton_m_m.clicked.connect(self.GoMidToMid)
        self.pButton_h_s.clicked.connect(self.GoHardToSoft)
        self.pButton_h_m.clicked.connect(self.GoHardToMid)
        self.pButton_h_h.clicked.connect(self.GoHardToHard)
        
    def GoSoftToMid(self) :
        strokeDialog = dialog.Dialog(self)
        strokeDialog.show()
        pixmap = QPixmap("ui\image_stroke\s_m (2)") #이미지 생성 
        strokeDialog.image_0.setPixmap(QPixmap(pixmap))   #라벨에 이미지추가
        strokeDialog.image_0.setStyleSheet("border: 1px solid black;")   #라벨 테두리 변경        
        strokeDialog.text_0.setFont(QtGui.QFont('HY궁서B', 8))   #폰트 변경
        strokeDialog.text_0.setText("붓을 살짝 놓습니다.<br>획을 서서히 늘려갑니다.<br>마무리 시<br>붓 각도를 세운 후<br>느긋히 뗍니다.")      #라벨에 텍스트추가
        strokeDialog.pButton_drone.clicked.connect(drone.Move_SoftToMid)

    def GoSoftToHard(self) :
        strokeDialog = dialog.Dialog(self)
        strokeDialog.show()
        pixmap = QPixmap("ui\image_stroke\s_h (2)") 
        strokeDialog.image_0.setPixmap(QPixmap(pixmap))   
        strokeDialog.image_0.setStyleSheet("border: 1px solid black;")
        strokeDialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        strokeDialog.text_0.setText("붓의 살짝 놓습니다.<br>획을 서서히 늘려갑니다.<br>마무리 시<br>끝 부분에 자연스럽게<br>붓 모양을 내고 뗍니다.")    
        strokeDialog.pButton_drone.clicked.connect(drone.Move_SoftToHard)

    def GoMidToMid(self) :
        strokeDialog = dialog.Dialog(self)
        strokeDialog.show()
        pixmap = QPixmap("ui\image_stroke\m_m (2)") 
        strokeDialog.image_0.setPixmap(QPixmap(pixmap))  
        strokeDialog.image_0.setStyleSheet("border: 1px solid black;")  
        strokeDialog.text_0.setFont(QtGui.QFont('HY궁서B', 8))  
        strokeDialog.text_0.setText("붓을 수직으로<br>천천히 놓고<br>면적을 넓혔다 줄입니다.<br>마무리 시 붓을 세워서<br> 천천히 뗍니다.")   
        strokeDialog.pButton_drone.clicked.connect(drone.Move_MidToMid)           

    def GoHardToSoft(self) :
        strokeDialog = dialog.Dialog(self)
        strokeDialog.show()
        pixmap = QPixmap("ui\image_stroke\h_s (2)") 
        strokeDialog.image_0.setPixmap(QPixmap(pixmap))  
        strokeDialog.image_0.setStyleSheet("border: 1px solid black;")   
        strokeDialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        strokeDialog.text_0.setText("시작 시 붓 모양이 나게 <br>세게 놓습니다.<br> 점점 가늘어지다가 <br>마무리 시 붓을 <br>가볍게 뗍니다.")  
        strokeDialog.pButton_drone.clicked.connect(drone.Move_HardToSoft)   

    def GoHardToMid(self) :
        strokeDialog = dialog.Dialog(self)
        strokeDialog.show()
        pixmap = QPixmap("ui\image_stroke\h_m (2)") 
        strokeDialog.image_0.setPixmap(QPixmap(pixmap))  
        strokeDialog.image_0.setStyleSheet("border: 1px solid black;") 
        strokeDialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        strokeDialog.text_0.setText("시작 시 붓 모양이 나게 <br>세게 놓습니다.<br>마무리 시 붓을 세워서<br>천천히 뗍니다.")
        strokeDialog.pButton_drone.clicked.connect(drone.Move_HardToMid)        

    def GoHardToHard(self) :
        strokeDialog = dialog.Dialog(self)
        strokeDialog.show()
        pixmap = QPixmap("ui\image_stroke\h_h (2)") 
        strokeDialog.image_0.setPixmap(QPixmap(pixmap))
        strokeDialog.image_0.setStyleSheet("border: 1px solid black;") 
        strokeDialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        strokeDialog.text_0.setText("시작 시 붓 모양이 나게 <br>세게 놓습니다.<br>끝 부분에 자연스럽게<br>붓 모양을 내고 뗍니다.")  
        strokeDialog.pButton_drone.clicked.connect(drone.Move_HardToHard)  

    def GoMain(self) :
        self.close()
        firstWindow.show()
        firstWindow.statusBar().showMessage('Main', 3000)

    def GoStart(self) :
        self.close()
        startWindow = StartWindow(self)
        startWindow.show()

class VowelsWindow(QMainWindow):
    def __init__(self, parent):
        super(VowelsWindow, self).__init__(parent)
        vowels_ui = 'ui\Vowels.ui'
        uic.loadUi(vowels_ui, self)
        
        self.statusBar().showMessage('vowels', 3000)
        self.setWindowTitle('Calligraphy Assist Program By Drone')

        self.show()
        self.ConnectButton()

    def ConnectButton(self) :
        self.pButton_Main.clicked.connect(self.GoMain) 
        self.pButton_Start.clicked.connect(self.GoStart)
        self.pButton_a.clicked.connect(self.Go_A)
        self.pButton_ae.clicked.connect(self.Go_Ae)
        self.pButton_e.clicked.connect(self.Go_E)
        self.pButton_eo.clicked.connect(self.Go_Eo)
        self.pButton_eu.clicked.connect(self.Go_Eu)
        self.pButton_i.clicked.connect(self.Go_I)
        self.pButton_o.clicked.connect(self.Go_O)
        self.pButton_oe.clicked.connect(self.Go_Oe)
        self.pButton_u.clicked.connect(self.Go_U)
        self.pButton_ui.clicked.connect(self.Go_Ui)
        self.pButton_wa.clicked.connect(self.Go_Wa)
        self.pButton_wae.clicked.connect(self.Go_Wae)
        self.pButton_we.clicked.connect(self.Go_We)
        self.pButton_wi.clicked.connect(self.Go_Wi)
        self.pButton_wo.clicked.connect(self.Go_Wo)
        self.pButton_ya.clicked.connect(self.Go_Ya)
        self.pButton_yae.clicked.connect(self.Go_Yae)
        self.pButton_ye.clicked.connect(self.Go_Ye)
        self.pButton_yeo.clicked.connect(self.Go_Yeo)
        self.pButton_yo.clicked.connect(self.Go_Yo)
        self.pButton_yu.clicked.connect(self.Go_Yu)
    
    #'ㅏ'
    def Go_A(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_a\_a_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로")  
        pixmap = QPixmap("ui\image_vowels\_a\_a_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("서서 -> 강조,<br> 우측으로 짧게")  
        _dialog.pButton_drone.clicked.connect(drone.Move_A)  
    #'ㅐ'
    def Go_Ae(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_ae\_ae_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로")  
        pixmap = QPixmap("ui\image_vowels\_ae\_ae_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("서서 -> 강조,<br> 우측으로 ")  
        pixmap = QPixmap("ui\image_vowels\_ae\_ae_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서,<br> 아래측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Ae)
    #'ㅔ'
    def Go_E(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_e\_e_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 우측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_e\_e_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로")  
        pixmap = QPixmap("ui\image_vowels\_e\_e_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서,<br> 아래측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_E)  
    #'ㅓ'
    def Go_Eo(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_eo\_eo_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서 <br> 우측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_eo\_eo_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Eo)  
    #'ㅡ'
    def Go_Eu(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_eu\_eu_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 강조 <br> 우측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Eu)  
    #'ㅣ'
    def Go_I(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_i\_i_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_I)  
    #'ㅗ'
    def Go_O(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_o\_o_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_o\_o_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 강조 <br> 우측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_O)  
    #'ㅚ'
    def Go_Oe(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_oe\_oe_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_oe\_oe_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서 <br> 우측으로")  
        pixmap = QPixmap("ui\image_vowels\_oe\_oe_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서,<br> 아래측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Oe)
    #'ㅜ'
    def Go_U(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_u\_u_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 강조 <br> 우측으로")  
        pixmap = QPixmap("ui\image_vowels\_u\_u_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        _dialog.pButton_drone.clicked.connect(drone.Move_U)  
    #'ㅢ'
    def Go_Ui(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_ui\_ui_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서 <br> 우측으로")  
        pixmap = QPixmap("ui\image_vowels\_ui\_ui_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Ui)  
    #'ㅘ'
    def Go_Wa(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_wa\_wa_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_wa\_wa_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서 <br> 우측으로")  
        pixmap = QPixmap("ui\image_vowels\_wa\_wa_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서,<br> 아래측으로")    
        pixmap = QPixmap("ui\image_vowels\_wa\_wa_4") 
        _dialog.image_3.setPixmap(QPixmap(pixmap))
        _dialog.image_3.setStyleSheet("border: 1px solid black;") 
        _dialog.text_3.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_3.setText("서서 -> 강조 <br> 우측으로 짧게")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Wa)  
    #'ㅙ'
    def Go_Wae(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_wae\_wae_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_wae\_wae_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서 <br> 우측으로")  
        pixmap = QPixmap("ui\image_vowels\_wae\_wae_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서,<br> 아래측으로")    
        pixmap = QPixmap("ui\image_vowels\_wae\_wae_4") 
        _dialog.image_3.setPixmap(QPixmap(pixmap))
        _dialog.image_3.setStyleSheet("border: 1px solid black;") 
        _dialog.text_3.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_3.setText("강조 -> 서서,<br> 아래측으로 길게")  
        pixmap = QPixmap("ui\image_vowels\_wae\_wae_5") 
        _dialog.image_4.setPixmap(QPixmap(pixmap))
        _dialog.image_4.setStyleSheet("border: 1px solid black;") 
        _dialog.text_4.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_4.setText("서서 -> 강조 <br> 우측으로 짧게")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Wae)
    #'ㅞ'
    def Go_We(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_we\_we_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서 <br> 우측으로")  
        pixmap = QPixmap("ui\image_vowels\_we\_we_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_we\_we_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서 <br> 우측으로 짧게")    
        pixmap = QPixmap("ui\image_vowels\_we\_we_4") 
        _dialog.image_3.setPixmap(QPixmap(pixmap))
        _dialog.image_3.setStyleSheet("border: 1px solid black;") 
        _dialog.text_3.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_3.setText("강조 -> 서서,<br> 아래측으로")  
        pixmap = QPixmap("ui\image_vowels\_we\_we_5") 
        _dialog.image_4.setPixmap(QPixmap(pixmap))
        _dialog.image_4.setStyleSheet("border: 1px solid black;") 
        _dialog.text_4.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_4.setText("강조 -> 서서,<br> 아래측으로 길게")  
        _dialog.pButton_drone.clicked.connect(drone.Move_We)
    #'ㅟ'
    def Go_Wi(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_wi\_wi_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서 <br> 우측으로")  
        pixmap = QPixmap("ui\image_vowels\_wi\_wi_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_wi\_wi_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서,<br> 아래측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Wi)
    #'ㅝ'
    def Go_Wo(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_wo\_wo_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서 <br> 우측으로")  
        pixmap = QPixmap("ui\image_vowels\_wo\_wo_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_wo\_wo_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서 <br> 우측으로 짧게")    
        pixmap = QPixmap("ui\image_vowels\_wo\_wo_4") 
        _dialog.image_3.setPixmap(QPixmap(pixmap))
        _dialog.image_3.setStyleSheet("border: 1px solid black;") 
        _dialog.text_3.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_3.setText("강조 -> 서서,<br> 아래측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Wo)
    #'ㅑ'
    def Go_Ya(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_ya\_ya_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로")  
        pixmap = QPixmap("ui\image_vowels\_ya\_ya_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("서서 -> 강조 <br> 우측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_ya\_ya_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("서서 -> 강조 <br> 우측으로 짧게")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Ya)
    #'ㅒ'
    def Go_Yae(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_yae\_yae_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로")  
        pixmap = QPixmap("ui\image_vowels\_yae\_yae_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로 조금<br> 더 길게")  
        pixmap = QPixmap("ui\image_vowels\_yae\_yae_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("서서 -> 강조 <br> 우측으로 짧게")    
        pixmap = QPixmap("ui\image_vowels\_yae\_yae_4") 
        _dialog.image_3.setPixmap(QPixmap(pixmap))
        _dialog.image_3.setStyleSheet("border: 1px solid black;") 
        _dialog.text_3.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_3.setText("서서 -> 강조 <br> 우측으로 짧게")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Yae)
    #'ㅖ'
    def Go_Ye(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_ye\_ye_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서 <br> 우측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_ye\_ye_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서 <br> 우측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_ye\_ye_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서,<br> 아래측으로")    
        pixmap = QPixmap("ui\image_vowels\_ye\_ye_4") 
        _dialog.image_3.setPixmap(QPixmap(pixmap))
        _dialog.image_3.setStyleSheet("border: 1px solid black;") 
        _dialog.text_3.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_3.setText("강조 -> 서서,<br> 아래측으로 조금 <br>더 길게")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Ye)
    #'ㅕ'
    def Go_Yeo(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_yeo\_yeo_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서 <br> 우측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_yeo\_yeo_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서 <br> 우측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_yeo\_yeo_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서,<br> 아래측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Yeo)
    #'ㅛ'
    def Go_Yo(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_yo\_yo_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_yo\_yo_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_yo\_yo_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 강조 <br> 우측으로")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Yo)
    #'ㅠ'
    def Go_Yu(self):
        _dialog = dialog.Dialog(self)
        _dialog.show()
        pixmap = QPixmap("ui\image_vowels\_yu\_yu_1") 
        _dialog.image_0.setPixmap(QPixmap(pixmap))
        _dialog.image_0.setStyleSheet("border: 1px solid black;") 
        _dialog.text_0.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_0.setText("강조 -> 강조 <br> 우측으로")  
        pixmap = QPixmap("ui\image_vowels\_yu\_yu_2") 
        _dialog.image_1.setPixmap(QPixmap(pixmap))
        _dialog.image_1.setStyleSheet("border: 1px solid black;") 
        _dialog.text_1.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_1.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        pixmap = QPixmap("ui\image_vowels\_yu\_yu_3") 
        _dialog.image_2.setPixmap(QPixmap(pixmap))
        _dialog.image_2.setStyleSheet("border: 1px solid black;") 
        _dialog.text_2.setFont(QtGui.QFont('HY궁서B', 8)) 
        _dialog.text_2.setText("강조 -> 서서,<br> 아래측으로 짧게")  
        _dialog.pButton_drone.clicked.connect(drone.Move_Yu)

    def GoMain(self) :
        self.close()
        firstWindow.show()
        firstWindow.statusBar().showMessage('Main', 3000)

    def GoStart(self) :
        self.close()
        startWindow = StartWindow(self)
        startWindow.show()

class ConsonantsWindow(QMainWindow):
    def __init__(self, parent):
        super(ConsonantsWindow, self).__init__(parent)
        consonants_ui = 'ui\consonants.ui'
        uic.loadUi(consonants_ui, self)
        
        self.statusBar().showMessage('Consonants', 3000)
        self.setWindowTitle('Calligraphy Assist Program By Drone')

        self.show()
        self.ConnectButton()


    def ConnectButton(self) :
        self.pButton_Main.clicked.connect(self.GoMain)     
        self.pButton_Start.clicked.connect(self.GoStart)
        self.pButton_g.clicked.connect(self.Go_G)
        self.pButton_k.clicked.connect(self.Go_K)
        self.pButton_n.clicked.connect(self.Go_N)
        self.pButton_d.clicked.connect(self.Go_D)
        self.pButton_t.clicked.connect(self.Go_T)
        self.pButton_l.clicked.connect(self.Go_L)
        self.pButton_m.clicked.connect(self.Go_M)
        self.pButton_b.clicked.connect(self.Go_B)
        self.pButton_p.clicked.connect(self.Go_P)
        self.pButton_s.clicked.connect(self.Go_S)
        self.pButton_j.clicked.connect(self.Go_J)
        self.pButton_ch.clicked.connect(self.Go_Ch)
        self.pButton_ng.clicked.connect(self.Go_Ng)
        self.pButton_h.clicked.connect(self.Go_H)

    def Go_G(self) :
        gDialog = dialog.Consonant_G_Dialog(self)
        gDialog.show()

    def Go_K(self) :
        gDialog = dialog.Consonant_K_Dialog(self)
        gDialog.show()

    def Go_N(self) :
        gDialog = dialog.Consonant_N_Dialog(self)
        gDialog.show()

    def Go_D(self) :
        gDialog = dialog.Consonant_D_Dialog(self)
        gDialog.show()

    def Go_T(self) :
        gDialog = dialog.Consonant_T_Dialog(self)
        gDialog.show()

    def Go_L(self) :
        gDialog = dialog.Consonant_L_Dialog(self)
        gDialog.show()

    def Go_M(self) :
        gDialog = dialog.Consonant_M_Dialog(self)
        gDialog.show()

    def Go_B(self) :
        gDialog = dialog.Consonant_B_Dialog(self)
        gDialog.show()

    def Go_P(self) :
        gDialog = dialog.Consonant_P_Dialog(self)
        gDialog.show()

    def Go_S(self) :
        gDialog = dialog.Consonant_S_Dialog(self)
        gDialog.show()

    def Go_J(self) :
        gDialog = dialog.Consonant_J_Dialog(self)
        gDialog.show()

    def Go_Ch(self) :
        gDialog = dialog.Consonant_Ch_Dialog(self)
        gDialog.show()

    def Go_Ng(self) :
        gDialog = dialog.Consonant_Ng_Dialog(self)
        gDialog.show()

    def Go_H(self) :
        gDialog = dialog.Consonant_H_Dialog(self)
        gDialog.show()

    def GoMain(self) :
        self.close()
        firstWindow.show()
        firstWindow.statusBar().showMessage('Main', 3000)
        
    def GoStart(self) :
        self.close()
        startWindow = StartWindow(self)
        startWindow.show()

class StartWindow(QMainWindow):
    def __init__(self, parent):
        super(StartWindow, self).__init__(parent)
        start_ui = 'ui\start.ui'
        uic.loadUi(start_ui, self)
        
        self.statusBar().showMessage('Start', 3000)
        self.setWindowTitle('Calligraphy Assist Program By Drone')
        self.show()
        self.pButton_Main.clicked.connect(self.GoMain)
        self.pButton_0.clicked.connect(self.GoCharateristic)
        self.pButton_1.clicked.connect(self.GoIntroduction)
        self.pButton_2.clicked.connect(self.GoPractice)
        self.pButton_3.clicked.connect(self.GoStroke)
        self.pButton_4.clicked.connect(self.GoConsonants)
        self.pButton_5.clicked.connect(self.GoVowels)

    def GoCharateristic(self) :
        self.hide() 
        characteristicWindow = CharacteristicWindow(self)
        characteristicWindow.show()

    def GoIntroduction(self) :
        self.hide() 
        introWindow = IntroWindow(self)
        introWindow.show()

    def GoPractice(self) :
        self.hide() 
        practiceWindow = PracticeWindow(self)
        practiceWindow.show()

    def GoStroke(self) :
        self.hide() 
        strokeWindow = StrokeWindow(self)
        strokeWindow.show()

    def GoVowels(self) :
        self.hide()
        vowelWindow = VowelsWindow(self)
        vowelWindow.show()

    def GoConsonants(self) :
        self.hide()
        consonantsWindow = ConsonantsWindow(self)
        consonantsWindow.show()
 
    def GoMain(self) :
        self.hide()
        firstWindow.show()
        firstWindow.statusBar().showMessage('Main', 3000)
        
class InfoWindow(QMainWindow):
    def __init__(self, parent):
        super(InfoWindow, self).__init__(parent)
        info_ui = 'ui\info.ui'
        uic.loadUi(info_ui, self)
        self.show()
        self.statusBar().showMessage('Info', 3000)
        self.setWindowTitle('Calligraphy Assist Program By Drone')
        self.pButton_Main.clicked.connect(self.GoMain)     

    def GoMain(self) :
        self.close()
        firstWindow.show()
        firstWindow.statusBar().showMessage('Main', 3000)

class StatusWindow(QMainWindow):
    def __init__(self, parent):
        super(StatusWindow, self).__init__(parent)
        status_ui = 'ui\status.ui'
        uic.loadUi(status_ui, self)
        self.show()
        self.statusBar().showMessage('Status', 3000)
        self.setWindowTitle('Calligraphy Assist Program By Drone') 
        self.pButton_Check.clicked.connect(self.Check)  
        self.pButton_Main.clicked.connect(self.GoMain)    

    def Check(self) :
        self.tBrowser.clear()
        sleep(10)
        self.tBrowser.append('드론의 연결 상태를 체크합니다.')
        sleep(10)
        self.tBrowser.append("드론은 현재 통신 가능한 상태입니다.")
        sleep(10)
        self.tBrowser.append("확인을 종료합니다.")
        sleep(10)

    def GoMain(self) :
        self.hide()
        firstWindow.statusBar().showMessage('Main', 3000)
        firstWindow.show()


class MainWindow(QMainWindow, mainWindow_ui) : 
    def __init__(self) :
        super().__init__()
        self.setupUi(self)

        self.setWindowTitle('Calligraphy Assist Program By Drone')
        self.setWindowIcon(QIcon('icon.png'))

        self.statusBar().showMessage('Main', 3000)
        self.pButton_Start.clicked.connect(self.Start)
        self.pButton_Info.clicked.connect(self.Info)
        self.pButton_End.clicked.connect(self.End)

    def Start(self) :
        self.hide()
        window = StartWindow(self)
        window.show()
        
    def Info(self) :
        self.hide()
        window = InfoWindow(self)
        window.show()

    def End(self) :
        sys.exit()


if __name__ == "__main__" :
    
    app = QApplication(sys.argv)      #QApplication : 프로그램을 실행시켜주는 클래스
    firstWindow = MainWindow()        #WindowClass의 인스턴스 생성
    firstWindow.show()                #프로그램 화면을 보여주는 코드
    app.exec_()                       #프로그램을 이벤트루프로 진입시키는(프로그램을 작동시키는) 코드