|
|
|
@ -234,12 +234,12 @@ def demoShowcase(root=None, border=True): |
|
|
|
|
|
|
|
|
|
|
|
def main(): |
|
|
|
def main(): |
|
|
|
parser = argparse.ArgumentParser() |
|
|
|
parser = argparse.ArgumentParser() |
|
|
|
parser.add_argument('-f', help='Full Screen (default)', action='store_true') |
|
|
|
parser.add_argument('-f', help="Full Screen (default)", action='store_true') |
|
|
|
parser.add_argument('-w', help='Windowed', action='store_true') |
|
|
|
parser.add_argument('-w', help="Windowed", action='store_true') |
|
|
|
parser.add_argument('-t', help='Track Mouse', action='store_true') |
|
|
|
parser.add_argument('-t', help="Don't Track Mouse", action='store_true') |
|
|
|
args = parser.parse_args() |
|
|
|
args = parser.parse_args() |
|
|
|
windowed = args.w |
|
|
|
windowed = args.w |
|
|
|
mouseTrack = args.t |
|
|
|
mouseTrack = not args.t |
|
|
|
|
|
|
|
|
|
|
|
root = ttk.TTk(title="pyTermTk Demo", mouseTrack=mouseTrack) |
|
|
|
root = ttk.TTk(title="pyTermTk Demo", mouseTrack=mouseTrack) |
|
|
|
if windowed: |
|
|
|
if windowed: |
|
|
|
|