示例#1
0
#from kg.file_util import load_nif, load_tri, get_files, save_file
#from kg.search_util import mainSearch, setSeams, setTriSeams
from kg.ui_tools import uiButton, uiToggle, mainUI, uiComboSlider, uiRadio, uiFrame, uiLabel, constructMenu
#from operator import itemgetter

from pyffi.formats.nif import NifFormat

import tkinter
import re
from os import path, makedirs

ui_tools.button_width = 20
ui_tools.entry_width = 5
ui_tools.slider_length = 100

menu = mainUI("ESP Reader Options")
config_file = 'esp_reader.cfg'

r_nif_end = re.compile('.nif$', flags=re.IGNORECASE)


"""
Menu Window Frames
"""

# left_frame = uiFrame(menu.frame, column = 0, columnspan = 1, row = 0, rowspan = 6, relief = True)
# left_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
# right_frame = uiFrame(menu.frame, column = 1, columnspan = 2, row = 0, rowspan = 6, relief = True)
# right_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
option_frame = uiFrame(menu.frame, column = 0, columnspan = 3, row = 6, rowspan = 2, relief = True)
option_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
示例#2
0
#from kg.file_util import load_nif, load_tri, get_files, save_file
#from kg.search_util import mainSearch, setSeams, setTriSeams
from kg.ui_tools import uiButton, uiToggle, mainUI, uiComboSlider, uiRadio, uiFrame, uiLabel, constructMenu
#from operator import itemgetter

from pyffi.formats.nif import NifFormat

import tkinter
import re
from os import path, makedirs

ui_tools.button_width = 20
ui_tools.entry_width = 5
ui_tools.slider_length = 100

menu = mainUI("Export Seam Template Options")
config_file = 'makeTemplate.cfg'

r_nif_end = re.compile('.nif$', flags=re.IGNORECASE)


"""
Menu Window Frames
"""

# left_frame = uiFrame(menu.frame, column = 0, columnspan = 1, row = 0, rowspan = 6, relief = True)
# left_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
# right_frame = uiFrame(menu.frame, column = 1, columnspan = 2, row = 0, rowspan = 6, relief = True)
# right_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
option_frame_1 = uiFrame(menu.frame, column = 0, columnspan = 1, row = 0, rowspan = 4, relief = True)
option_frame_1.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
示例#3
0
from pyffi.spells.nif.optimize import SpellMergeDuplicates
from pyffi.spells.nif import NifToaster

import tkinter

from os import listdir, path, makedirs, walk
from re import compile, findall, IGNORECASE, split, sub

config_file = 'MeshCopy.cfg'

ui_tools.button_width = 20
ui_tools.entry_width = 5
ui_tools.slider_length = 100

menu = mainUI("Mesh Copy Tool Options")
left_frame = uiFrame(menu, column = 0, columnspan = 3, row = 0, rowspan = 6, relief = True)
left_frame.grid(sticky = tkinter.W + tkinter.E)
utility_frame = uiFrame(menu, column = 0, columnspan = 3, row = 6, rowspan = 6, relief = True)
utility_frame.grid(sticky = tkinter.W + tkinter.E)

menu.version = 'b_13'
menu.name = 'MeshCopy_Options'
menu.file = config_file
#menu.load(file = config_file)

menu.menu_values = {\
    'subfolder': (tkinter.IntVar(), 0),\
    'template': (tkinter.StringVar(), '/test/template.nif'),\
    'target': (tkinter.StringVar(), '/test/'),\
    'destination': (tkinter.StringVar(), '/test/output/'),\
示例#4
0
from kg.file_util import load_nif, config, i_dir_, save_file
from kg.search_util import mainSearch, setWeightDictionary
from kg.ui_tools import uiButton, uiToggle, mainUI, uiComboSlider, uiRadio, uiFrame, uiLabel, constructMenu

import tkinter

from os import listdir, path, makedirs, walk
from re import compile, findall, IGNORECASE, split, sub

config_file = 'MeshRigger.cfg'

ui_tools.button_width = 20
ui_tools.entry_width = 5
ui_tools.slider_length = 100

menu = mainUI("Mesh Rigger Options")
#utility_frame = uiFrame(menu.frame, column = 0, columnspan = 3, row = 9, rowspan = 2, relief = True)
vertex_frame = uiFrame(menu, column = 0, columnspan = 1, row = 0, rowspan = 6, relief = True)
vertex_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
menu_frame = uiFrame(menu, column = 1, columnspan = 2, row = 0, rowspan = 6, relief = True)
menu_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
utility_frame = uiFrame(menu, column = 0, columnspan = 3, row = 6, rowspan = 2, relief = True)
utility_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)

#print('Default Settings', ui_tools.svReg)

menu.version = 'b_14'
menu.name = 'MeshRigger_Options'
menu.file = config_file

menu.menu_values = {\
示例#5
0
from kg.ui_tools import uiButton, uiToggle, mainUI, uiComboSlider, uiRadio, uiFrame, uiLabel, constructMenu
from operator import itemgetter

import re
import tkinter

from os import path, makedirs

r_nif_end = re.compile('\.nif$', flags=re.IGNORECASE)
r_tri_end = re.compile('\.tri$', flags=re.IGNORECASE)

ui_tools.button_width = 20
ui_tools.entry_width = 5
ui_tools.slider_length = 100

menu = mainUI("Seam Mender Options")
config_file = 'SeamMender.cfg'

"""
Menu Window Frames
"""

left_frame = uiFrame(menu.frame, column = 0, columnspan = 1, row = 0, rowspan = 6, relief = True)
left_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
center_frame = uiFrame(menu.frame, column = 1, columnspan = 1, row = 0, rowspan = 6, relief = True)
center_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
right_frame = uiFrame(menu.frame, column = 2, columnspan = 1, row = 0, rowspan = 6, relief = True)
right_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
far_right_frame = uiFrame(menu.frame, column = 3, columnspan = 1, row = 0, rowspan = 6, relief = True)
far_right_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
option_frame = uiFrame(menu.frame, column = 0, columnspan = 3, row = 6, rowspan = 2, relief = True)
示例#6
0
from kg.template_util import loadTemplate
from kg.file_util import load_nif, config
from kg.search_util import mainSearch, setWeightDictionary, compareMatches
from kg.ui_tools import uiButton, uiToggle, mainUI, uiComboSlider, uiRadio, uiFrame, uiLabel, constructMenu

import tkinter

from os import listdir, path, makedirs, walk
from re import compile, findall, IGNORECASE, split, sub


ui_tools.button_width = 20
ui_tools.entry_width = 5
ui_tools.slider_length = 100

menu = mainUI("Vertex Checker Options")
config_file = 'vertChecker.cfg'

"""
Menu Window Frames
"""

left_frame = uiFrame(menu.frame, column = 0, columnspan = 1, row = 0, rowspan = 6, relief = True)
left_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
center_frame = uiFrame(menu.frame, column = 1, columnspan = 1, row = 0, rowspan = 6, relief = True)
center_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
right_frame = uiFrame(menu.frame, column = 2, columnspan = 1, row = 0, rowspan = 6, relief = True)
right_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
far_right_frame = uiFrame(menu.frame, column = 3, columnspan = 1, row = 0, rowspan = 6, relief = True)
far_right_frame.grid(sticky = tkinter.W + tkinter.E + tkinter.N + tkinter.S)
option_frame = uiFrame(menu.frame, column = 0, columnspan = 3, row = 6, rowspan = 2, relief = True)