Exemple #1
0
#
# GridCal 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.
#
# You should have received a copy of the GNU General Public License
# along with GridCal.  If not, see <http://www.gnu.org/licenses/>.
import os
import sys

PACKAGE_PARENT = '..'
SCRIPT_DIR = os.path.dirname(
    os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))

from GridCal.Gui.Main.GridCalMain import run

# TODO: Review the overall quality of the power flow (check that the results are the same as before, etc...)
# TODO: Integrate the OPF solvers (see if the PulpVar objects can operate vector-wise with numpy)
# TODO: Fix the cascading with the new module

if __name__ == "__main__":
    print("GridCal\n" + "Copyright (C) 2019\n"
          "Santiago Peñate Vera and Michel Lavoie\n" +
          "This program comes with ABSOLUTELY NO WARRANTY.\n" +
          "This is free software, and you are welcome to \n" +
          "redistribute it under certain conditions;\n" +
          "See the license file for more details.\n\n")
    run()
Exemple #2
0
# (at your option) any later version.
#
# GridCal 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.
#
# You should have received a copy of the GNU General Public License
# along with GridCal.  If not, see <http://www.gnu.org/licenses/>.
import os
import sys
import matplotlib
matplotlib.use('Qt5Agg')
PACKAGE_PARENT = '..'
SCRIPT_DIR = os.path.dirname(
    os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))

from GridCal.Gui.Main.GridCalMain import run

# TODO: Fix the cascading with the new module

if __name__ == "__main__":
    print("GridCal\n" + "Copyright (C) 2019\n"
          "Santiago Peñate Vera and Michel Lavoie\n" +
          "This program comes with ABSOLUTELY NO WARRANTY.\n" +
          "This is free software, and you are welcome to \n" +
          "redistribute it under certain conditions;\n" +
          "See the license file for more details.\n\n")
    run(use_native_dialogues=True)
Exemple #3
0
    import ctypes
    myappid = 'mycompany.myproduct.subproduct.version'  # arbitrary string
    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)


class Splash(QMainWindow):
    def __init__(self, parent=None):
        """

        @param parent:
        """

        # create main window
        QMainWindow.__init__(self, parent)
        self.ui = Ui_splashScreen()
        self.ui.setupUi(self)
        self.setWindowFlags(Qt.SplashScreen | Qt.FramelessWindowHint)


if __name__ == "__main__":
    print(about_msg)

    # app = QApplication(sys.argv)
    # app.setStyle('Fusion')  # ['Breeze', 'Oxygen', 'QtCurve', 'Windows', 'Fusion']
    #
    # splash = Splash()
    # splash.show()

    run(use_native_dialogues=False)
    # sys.exit(app.exec_())