{"repository":{"watchers":0,"owner":"kanaud","pushed_at":"2013-01-12T03:21:21-08:00","description":"                                                     ANY GUI  Introduction  python has many GUI tool kits available  such as :  1)\tWxPython 2)\tTkinter 3)\tpyQT 4)\tpyGTK 5)\tpyjs(Python javasccript) 6)\teasyGUI  , etc.  \tthe goal of the project is to provide the user API to the users for most used tool kits like wxPython,Tkinter,pyQT,pyGTK.  ANY GUI API  using toolkits: wxPYTHON : from anygui import anywx pyGTK : from anygui import anygtk pyQT : from anygui import anyqt tkinter : from anygui import anytk  Widgets :  in anygui API there is only one top widget frame and rest all the widgets are added to the frame. In rest of documentation lets assume the selected tool kit is imported as a eg. \tfrom anygui import anywx as a anygui api automatically assigns default values for ol widgets . Frame: frame can be added by making an instance of class frame present in anygui api eg \tf=g.frame(id,title,width,height) \t \tid=id of the frame instance  \t\t\t\t \t  default value=-1 \ttitle=title that appear on the top of the frame   as string           default value=frame \twidth=width of the frame \t\t\t\t\t  default value =750 \theight=height of the frame \t\t\t\t              default value=500  Append function: all other widgets other then top level frame widget has to be added to the farme by calling append function of the frame \teg. For adding static_text call f.append(static_text) \t\twhere static_text is the instance of widget static_text    show function : should be executed at the end of the app to run the api . \tEg \t\tf.show()  Static Text:  To add static text to the frame in our application by using class static_text eg \ts=static_text()  in anygui all other attributes of the widget are class variable of that widget these attributes can be used to edit widgets for a user defined value  class variable of static_text \t1)position of static text \tpos=(x,y) \t \t\tx=width \t \ty=height \t2)size of static text \tsize=(x,y) \t\tx=width \t\ty=height \t\t \t3)label=” ” \t\tlabel of static text as a string \t\tdefault=”static text”\t  \t Button: to add button in the frame make a instance of widget button \teg. \t\tb=button() \t \tbutton variables are : \t \t1) pos =(x,y) \t\tassigning position to the button \t\teg. \t\t\tb.pos=(20,45)  \t2) size=(x,y) \t\tsize of the button \t\teg. \t\t\tb.size=(20,45)  \t3) label=” “ \t\tlabel on the button \t\teg. \t\t\tb.label=”click button”  \tbutton widget also has pre defined functions:  \t1) onclick(function) \t\there function defines the function that is executed on button click Check Box: to add check box in the frame make a instance of the widget check_box  \teg. \t \t\tc=check_box() check box variable are : \t \t1) pos =(x,y) \t\tassigning position to the checkbox \t\teg. \t\t\tc.pos=(20,45)  \t2) size=(x,y) \t\tsize of the checkbox \t\teg. \t\t\tc.size=(20,45)  \t3) label=” “ \t\tlabel on the checkbox \t\teg. \t\t\tc.label=”check box 1”  check_box also has following functions \t \tset value:     set_value(BOOL) \t\tcan be used to set check box to clicked =true or not clicked = false \t\t\teg. \t\t\t\tc.set_value(True) \tget value: get_value() \t\treturns boolian value for a checkbox either true for clicked and \t\t\t\tfalse for not clicked  Combo box: To add combo box in the frame make a instance of the widget combo_box  \teg. \t \t\tc=combo_box() check box variable are : \t \t1) pos =(x,y) \t\tassigning position to the combo box \t\teg. \t\t\tc.pos=(20,45)  \t2) size=(x,y) \t\tsize of the combo box \t\teg. \t\t\tc.size=(20,45)  \t3) labels=[] \t\toptions in the combo box can be assigned by label list \t\teg. \t\t\tc.label=[“vol 1”,”vol2”,.........] \t4)default \t\tuser defined default value for the combo box \t\teg \t\t\tc.default=” vol 3”\t  check_box also has following functions  \tget value: get_value() \t\treturns string value for a combo box of the choice selected  \t\t\ts=c.get_value()  Text feild: To add  single line text field  in the frame make a instance of the widget text_field  \teg. \t \t\tc=text_feild() check box variable are : \t \t1) pos =(x,y) \t\tassigning position to the text_feild \t\teg. \t\t\tc.pos=(20,45)  \t2) size=(x,y) \t\tsize of the text_feild \t\teg. \t\t\tc.size=(20,45)  \t3) label=” ” \t\tassigning user defined default text in the text_feild \t\teg. \t\t\tc.label=”this is text in text feild”   check_box also has following functions  \t1)get text: get_text() \t\treturns string of the text present in the text feild  \t\t\ts=c.get_text() \t \t \t3)set text: set_text(string str) \t \t\tset  string of the text  in the text feild  \t\t\ts=c.set_text(“this is in text feild”)\t \t  Text Area: To add multiline text area  in the frame make a instance of the widget text_area  \teg. \t \t\tc=text_area() check box variable are : \t \t1) pos =(x,y) \t\tassigning position to the text_area \t\teg. \t\t\tc.pos=(20,45)  \t2) size=(x,y) \t\tsize of the text_area \t\teg. \t\t\tc.size=(20,45)  \t3) text=” ” \t\tassigning user defined default text in the text_area \t\teg. \t\t\tc.text=”this is text in text area” \t\t  text_area also has following functions  \t1)get text: get_text() \t\treturns string of the text present in the text area  \t\t\ts=c.get_text() \t2)clear: clear() \t\t\tclear the text present in the text area    \t\t\ts=c.clear() \t \t3)set text: set_text(string str) \t \t\tset  string of the text  in the text area  \t\t\ts=c.set_text(“this is in text area”)\t \t4)append text: append_text(string str) \t\tappends string of the text present in the text area to the string passed \t\t\tin the function  \t\t\ts=c.append_text(“this string will get appended”)  Radio buttons: To add radio button set in the frame make a instance of the widget radio_buttons  \teg. \t \t\tc=radio_buttons() to add single radio button in the grup use append_rb function \t\tappend_rb(label,weidth,height) \teg. \t\tc.appendr_rb(label,width,height) check box variable are : \t  \t1) size=(x,y) \t\tsize of the radio button grup \t\teg. \t\t\tc.size=(20,45)  \t\t  radio_buttons  also has following functions  \t1)get value: get_value() \t\treturns string of the label that was clicked    \t\t\ts=c.get_value()  \t \t3)set_true: set_true(int n) \t \t\tset radio button n to be clicked  \t\t\tc.set_true(2)\t \t","stargazers":0,"forks":0,"has_wiki":true,"has_issues":true,"fork":false,"size":124,"created_at":"2013-01-12T03:06:19-08:00","open_issues":0,"private":false,"has_downloads":true},"actor_attributes":{"type":"User","email":"da39a3ee5e6b4b0d3255bfef95601890afd80709"},"url":"https://github.com/kanaud/Any-GuI-API-/compare/62a64a3c0d...89e6a60904"}