|
10 | 10 | import os
|
11 | 11 |
|
12 | 12 | mycolor = '#262626'
|
13 |
| -gui = Tk() |
14 |
| -gui.title('TEST CASE GENERATOR') |
15 |
| -gui.configure(bg=mycolor) |
16 |
| - |
17 |
| -if os.environ.get('DISPLAY', '') == '': |
18 |
| - print('no display found, using:0,0') |
19 |
| - os.environ.__setitem__('DISPLAY', ':0.0') |
20 |
| -else: |
21 |
| - print('found display') |
22 | 13 |
|
23 | 14 |
|
24 | 15 | class Case:
|
@@ -713,26 +704,37 @@ def generate(self): # Type 10
|
713 | 704 | self.output.insert(END, '\n')
|
714 | 705 |
|
715 | 706 |
|
716 |
| -t = IntVar() |
717 |
| -n_min = IntVar() |
718 |
| -n_max = IntVar() |
719 |
| -m_min = IntVar() |
720 |
| -m_max = IntVar() |
721 |
| -k_min = IntVar() |
722 |
| -k_max = IntVar() |
723 |
| -a_min = IntVar() |
724 |
| -a_max = IntVar() |
725 |
| -b_min = IntVar() |
726 |
| -b_max = IntVar() |
727 |
| -char_lis = StringVar() |
728 |
| - |
729 |
| -Case.home(self=Case) |
730 |
| - |
731 |
| -gui.mainloop() |
732 |
| -gui.mainloop() |
733 |
| - |
734 |
| -# ------------------------------------------------- ### |
735 |
| -# ------------------------------------------------- ### |
736 |
| -# ### Developed by TANMAY KHANDELWAL (aka Dude901). ### |
737 |
| -# _________________________________________________ ### |
738 |
| -# _________________________________________________ ### |
| 707 | +if __name__ == '__main__': |
| 708 | + gui = Tk() |
| 709 | + gui.title('TEST CASE GENERATOR') |
| 710 | + gui.configure(bg=mycolor) |
| 711 | + |
| 712 | + if os.environ.get('DISPLAY', '') == '': |
| 713 | + print('no display found, using:0,0') |
| 714 | + os.environ.__setitem__('DISPLAY', ':0.0') |
| 715 | + else: |
| 716 | + print('found display') |
| 717 | + |
| 718 | + t = IntVar() |
| 719 | + n_min = IntVar() |
| 720 | + n_max = IntVar() |
| 721 | + m_min = IntVar() |
| 722 | + m_max = IntVar() |
| 723 | + k_min = IntVar() |
| 724 | + k_max = IntVar() |
| 725 | + a_min = IntVar() |
| 726 | + a_max = IntVar() |
| 727 | + b_min = IntVar() |
| 728 | + b_max = IntVar() |
| 729 | + char_lis = StringVar() |
| 730 | + |
| 731 | + Case.home(self=Case) |
| 732 | + |
| 733 | + gui.mainloop() |
| 734 | + gui.mainloop() |
| 735 | + |
| 736 | + # ------------------------------------------------- ### |
| 737 | + # ------------------------------------------------- ### |
| 738 | + # ### Developed by TANMAY KHANDELWAL (aka Dude901). ### |
| 739 | + # _________________________________________________ ### |
| 740 | + # _________________________________________________ ### |
0 commit comments