Esempio n. 1
0
	def __init__(self, *args, **kwargs):
		base = ''
		self.tabla = kwargs['tabla']
		if kwargs.has_key('basedatos'):
			self.db = kwargs['basedatos']
		
		#print self.tabla.as_dict()
		for x in self.tabla.as_dict()['fields']:
			print x['label'], x['length'], x['fieldname']
		
		if kwargs.has_key('formato'):
			self.formato = kwargs['formato']
		else:
			self.formato = {}
		
		if kwargs.has_key('orden'):
			self.orden = kwargs['orden']
		else:
			self.orden = ''
			
		self.InitUI()
		panel['create'].onclick = self.button_press_create
		panel['update'].onclick = self.button_press_update
		panel['delete'].onclick = self.button_press_delete
		panel['search'].onclick = self.button_press_search
		
		mywin.show()
		gui.main_loop()
Esempio n. 2
0
    print "initializing!"
    evt.window["mypanel"]["mybutton"].label = "Click ME!!!!"
    evt.window.show()


def on_menu_file_about_click(event):
    pass


def on_menu_file_exit_click(evt):
    evt.window.close()


def on_field1_change(evt):
    print "Changed, new text: ", evt.window["field1"].value


def on_field1_keypress(evt):
    print "Keypress: ", evt.key
    if evt.key == 13:
        gui.alert(evt.window["field1"].value, "hello world!")


def on_mypanel_mybutton_click(etv):
    gui.alert("btn clicked!!!!")


if __name__ == "__main__":
    window = gui.load()
    gui.main_loop()
Esempio n. 3
0
        wsaa_url = wsaa.WSAAURL

    if config.has_option('WSFEv1', 'URL') and not H**O:
        wsfev1_url = config.get('WSFEv1', 'URL')
    else:
        wsfev1_url = wsfev1.WSDL

    if config.has_option('WSFEXv1', 'URL') and not H**O:
        wsfexv1_url = config.get('WSFEXv1', 'URL')
    else:
        wsfexv1_url = wsfexv1.WSDL

    CACERT = config.has_option('WSAA', 'CACERT') and config.get(
        'WSAA', 'CACERT') or None
    WRAPPER = config.has_option('WSAA', 'WRAPPER') and config.get(
        'WSAA', 'WRAPPER') or None

    DEFAULT_WEBSERVICE = "wsfev1"
    if config.has_section('PYRECE'):
        DEFAULT_WEBSERVICE = config.get('PYRECE', 'WEBSERVICE')

    if config.has_section('PROXY'):
        proxy_dict = dict(
            ("proxy_%s" % k, v) for k, v in config.items('PROXY'))
        proxy_dict['proxy_port'] = int(proxy_dict['proxy_port'])
    else:
        proxy_dict = {}

    c = PyRece()
    gui.main_loop()
Esempio n. 4
0
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, 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.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

from words import SchemaManager
from gui import main_loop

TEST=[['G', 'E', 'H', 'C'],
      ['R', 'S', 'G', 'Y'],
      ['C', 'E', 'B', 'U'],
      ['D', 'Y', 'G', 'A']]

# TEST=[['A', 'A', 'A', 'A'],
#       ['A', 'A', 'A', 'A'],
#       ['A', 'A', 'A', 'A'],
#       ['A', 'A', 'A', 'A']]

if __name__=='__main__':
    sm = SchemaManager()
    main_loop(sm)