File: GaussSum.py

package info (click to toggle)
gausssum 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 568 kB
  • sloc: python: 1,970; makefile: 22
file content (33 lines) | stat: -rw-r--r-- 961 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/env python
# -*- coding: cp1252 -*-
#
# Copyright (C) 2006-2009 Noel O'Boyle <baoilleach@gmail.com>
#
# This program is free software; you can redistribute and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
import os
import sys
if getattr(sys, 'frozen', False):
    # frozen
    here = os.path.dirname(sys.executable)
    os.chdir(here)

from tkinter import *   # GUI stuff
import gausssum.gausssumgui

if __name__=="__main__":

    root = Tk()
    root.title("GaussSum")

    app = gausssum.gausssumgui.App(root,sys.argv)   # Set up the app...

    mainloop()  # ...and sit back