Closed tjanpool closed 9 years ago
Cool stuff - maybe you can close this repository; make the changes; and open a pull request? I'd be happy to merge it in!
Thanks for this!
Did some coding with try catch to make it compatible with python2 and 3. Also I updated the examples. Was not able to test if it indeed still works with python2 but do think so.
The problem I now had is that I can not push to your repo.
created a fork
Cool - once you are done you can create a pull request. Looking forward to see this!
Installed pytkgen for fun with pip and python3. Howerver it was not compatable. I changed the file a bit, but do not now how to commit it so it will work with pip and python3. Because I do like you're script I decided to post this as issue and the solution I used to get the examples running with python3. In the examples I only needed to write the prints as print(..) but that is not intressting
Copyright (c) 2011. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301 USA
""" Module for easy creation of Tkinter GUIs.
Created on Apr 21, 2011
@author: tmetsch """
from tkinter import Tk, IntVar, StringVar import tkinter import json
def _contains_dict(items): """ Checks if a set of items contains a dictionary.
def _contains_list(items): """ Checks if a set of items contains a list.
class TkJson(Tk): """ Simple class which wraps Tk and uses some JSON to contruct a GUI. """