コード例 #1
0
ファイル: mesh_gamer_addon.py プロジェクト: shugraphics/gamer
 def resetgui(self, dname):
     self.gui = GamerUI(title="GAMer")
     self.gui.setup()
     self.gui.display()
コード例 #2
0
#
#
# Getting pyubic:
#
#
#
# This plugin is protected by the GPL: Gnu Public Licence
# GPL - http://www.gnu.org/copyleft/gpl.html
# Script Copyright (C) Johan Hake <*****@*****.**>
#                      Ludovic Autin <*****@*****.**>

# Import upy and set the UI Baseclass
import upy
upy.setUIClass()

# Importing gamer gui
from gamer.upy_gui import GamerUI

if upy.uiadaptor.host == "tk":
    from DejaVu import Viewer
    vi = Viewer()

    # Require a master
    gamergui = GamerUI(master=vi, title="GAMer")
else:
    gamergui = GamerUI(title="GAMer")

# Call it
gamergui.setup()
gamergui.display()