Commit Graph

220 Commits

Author SHA1 Message Date
MikeTheWatchGuy 4c09977365 Fix for Update of Button Element 2018-09-09 12:22:45 -04:00
MikeTheWatchGuy 699a6912d2 grab_anywhere option now available for non-blocking forms, but defaults to False for non-blocking. More Cookbook cleanup 2018-09-08 15:32:38 -04:00
MikeTheWatchGuy c9625b548b minor edit 2018-09-08 15:15:43 -04:00
MikeTheWatchGuy 1268885f3c TURNED OFF the grab_anywhere parameter for non-blocking forms. New #! line at top of file. Beginning of new Menu Element (in progress don't use) 2018-09-08 13:54:28 -04:00
MikeTheWatchGuy 8712c09e08 Added correct sizing to ComboBoxes - how height matches user requested height 2018-09-08 01:12:43 -04:00
MikeTheWatchGuy ceb09ae62c Fixed broken realtime buttons 2018-09-07 23:15:49 -04:00
MikeTheWatchGuy aaedeae326 New feature - keep_on_top setting in FlexForm 2018-09-07 22:13:15 -04:00
MikeTheWatchGuy 54e249de59 NEW Color Chooser Button 2018-09-07 16:37:50 -04:00
MikeTheWatchGuy 3278727744 Added ability to disable a Combobox... can also create as disabled 2018-09-07 13:25:56 -04:00
MikeTheWatchGuy ac44b5bdaa Justification setting for Input elements.... Finally can make tables! Demo fo tables 2018-09-06 23:17:40 -04:00
MikeTheWatchGuy 405bcf7cbc Turning back on Grab Anywhere! If you have a slider, turn it off, that simple 2018-09-06 21:58:16 -04:00
MikeTheWatchGuy 436f9c35d9 Had to turn off grab_anywhere... causes problems when you have sliders! Drat! 2018-09-06 21:56:20 -04:00
MikeTheWatchGuy 630f321fa3 Fix for *args crash in python 3.4. Had no idea was broken. OpenCV window sizing, Fix for tables in cookbook 2018-09-06 21:30:26 -04:00
MikeTheWatchGuy 30f964f6a9 The "Grab Anywhere" option... default is ON 2018-09-06 20:29:11 -04:00
MikeTheWatchGuy b471b5dd05 Fixed import as g instead of sg bug, made some demos borderless, used form.FindElement where possible, fixed PopupGetFile and PopupGetFolder no_window option 2018-09-06 16:20:37 -04:00
MikeTheWatchGuy be6ee091b1 Fix for checkbox background color being set to system default. 2018-09-06 15:25:05 -04:00
MikeTheWatchGuy 7e0728ac4d NEW Movable windows!! 2018-09-06 10:56:55 -04:00
MikeTheWatchGuy a0f4d6cfca Default should have been default_text 2018-09-05 23:16:08 -04:00
MikeTheWatchGuy ce352ea0bf New feature - option to remove title bar from forms! Targets for Calendar buttons, hiding tabbed forms until completely built before showing, 2018-09-05 19:57:32 -04:00
MikeTheWatchGuy 86f2f17e24 Borderless windows option for FlexForm 2018-09-05 15:56:25 -04:00
MikeTheWatchGuy 96341667af Fix for button target being None, None instead of 0,0 2018-09-05 12:43:41 -04:00
MikeTheWatchGuy 3a0377a496 Buttons can have keys now! Browse buttons have values now too. Risky change, but wtf, it's free software right? 2018-09-05 12:23:04 -04:00
MikeTheWatchGuy 1eeada1d54 Fixed Bug introduced when adding calendar. Was creating additional return values! UGH. 2018-09-05 10:29:36 -04:00
MikeTheWatchGuy 0899b7d9e8 NEW Element - CalendarButton (opens a calendar chooser widget), another fix for Mac buttons 2018-09-05 09:04:17 -04:00
MikeTheWatchGuy 667000ea2a NEW form.SaveToDisk and form.LoadFromDisk!
Another user submitted feature request
2018-09-04 23:13:15 -04:00
MikeTheWatchGuy 75970ade87 2.20 Release 2018-09-04 20:42:39 -04:00
MikeTheWatchGuy e251bf1bf4 New feature - change_submits for Combo boxes 2018-09-04 16:57:34 -04:00
MikeTheWatchGuy 16b1c8310d New options for PopupGetFile (save_as, no_window), added key to buttons, New Demo_Fill_form from JFong 2018-09-04 13:40:31 -04:00
MikeTheWatchGuy 50a69f25fc New PopupNoButtons box, added "key" to all elements, form.FindElement method, Combo.Update can update list of allowed values, 2018-09-03 23:58:56 -04:00
MikeTheWatchGuy 341233f8b7 Renamed select_submits to change_submit in Listbox so that it matches other elements 2018-09-03 17:56:01 -04:00
MikeTheWatchGuy c7a695d2a6 Changed button update method so can change only color if desired, tweaks to scrollable columns, fixed bug in size of OptionMeny element, initial check-in of image viewer demo by Jorj 2018-09-03 14:20:22 -04:00
MikeTheWatchGuy ccd3e4c797 Scrollable Columns - NEW Feature! 2018-09-03 10:51:54 -04:00
MikeTheWatchGuy 60a93a54ae Fill form function working! New Look and Feel settings 2018-09-02 22:15:05 -04:00
MikeTheWatchGuy 83d62d2555 NEW Fill Form feature! More Popup functions, Update methods added for all elements that did not have previously 2018-09-02 13:38:59 -04:00
MikeTheWatchGuy f8aff92c98 Default icon, function hiding, experimental dummy button, MsgBox renaming to Popup, Non-blocking Pop-up, removed legacy LayoutAndShow 2018-09-02 01:01:37 -04:00
MikeTheWatchGuy 4c8722765a Fix for radio button disappearing
Used same logar
2018-09-01 19:04:19 -04:00
MikeTheWatchGuy aeaf04ed73 NEW Dark look and feel setting. Fixed problem with incorrect checkbox colors 2018-09-01 17:46:35 -04:00
MikeTheWatchGuy a19fb528d4 NEW ELEMENT - InputOptionMenu / OptionMenu. Acts like a ComboBox but looks better
Never heard of this widget before, but after seeing it, had to add it to the list of Element choices!
2018-09-01 11:28:44 -04:00
MikeTheWatchGuy 421e96e800 Font sizer - fixed exit detection. Change Submits for Slider - don't setup unless change_submits flag is set 2018-09-01 10:51:19 -04:00
MikeTheWatchGuy c4364a2109 New Pop series of functions Popup, PopupGetFile, PopupGetFolder, PopupGetText, 2018-08-31 19:03:19 -04:00
MikeTheWatchGuy 3793ff81c2 Slider change_submits feature. Update method for Slider, updated Font Sizer demo 2018-08-31 09:29:00 -04:00
MikeTheWatchGuy 310fe845e4 Spin Element change_submits feature, can change font when updating Text Element, CHANGE TO PACKED ROWS
Important change to how "rows" are placed into form.  Switched from Grid to packed. SHOULD be ok, but it's a big change.
2018-08-31 09:07:37 -04:00
MikeTheWatchGuy 3e8c59d7dd New SystemDefaul look and feel setting 2018-08-29 17:59:06 -04:00
MikeTheWatchGuy 9b286bb050 Delete multiline input when doing an "Update", History added to HowDoI using up/down keys 2018-08-28 21:05:11 -04:00
MikeTheWatchGuy 01e7fd65fa Button color is system default for Mac platform ONLY, otherwise blue
Hated the gray buttons on windows so made the change so only the Mac platform uses the gray buttons
2018-08-28 20:07:17 -04:00
MikeTheWatchGuy b11eeae7ef FlexForm.Refresh method, Open() - new button shortcut function 2018-08-28 19:02:02 -04:00
MikeTheWatchGuy fee2bd6432 Listbox select return option - removed the bind_listbox_select option from Buttons. No longer signaling that way. 2018-08-28 16:42:51 -04:00
MikeTheWatchGuy d4ee06353e Big changes - Default button color now system default!! New default button size setting. Added padding to Output Element
These are sizeable look and feel changes.  All of the buttons will become a flat gray that matches the background.
2018-08-28 12:25:15 -04:00
MikeTheWatchGuy bdf9f67be1 New feature - Listbox bind to button. Indicates that as soon as a selection is made, a button click is simulated. 2018-08-27 23:57:52 -04:00
MikeTheWatchGuy 5243798a73 Resolution for Sliders 2018-08-27 11:20:01 -04:00
MikeTheWatchGuy 8759046bcf Bug fix - need to decrement number of open windows after ReadFormButton clicked 2018-08-27 10:55:53 -04:00
MikeTheWatchGuy 1505b56601 New button - FilesBrowse - Select MULTIPLE files 2018-08-27 09:56:35 -04:00
MikeTheWatchGuy 0def4bf436 Demo Matplotlib, Canvas Element changes, new Frame Element, added pad to Text, Slider
Plus a few other tweaks & bug fixes
2018-08-26 22:16:54 -04:00
MikeTheWatchGuy e7c216dfe1 CANVAS Element! Fixes for autosizing, scroll-bar artifacts on Output, fonts for Output, all shortcut functions using new method 2018-08-26 15:20:54 -04:00
MikeTheWatchGuy 07772cb2e7 Exposed 'pad' for ALL ELEMENTS. Touched every Element. Changed how shortcut funcations are made. New demo program Keypad. 2018-08-25 22:57:15 -04:00
MikeTheWatchGuy 60034cd168 Progress bar - decrement num windows if update fails (RISKY CHANGE)
More battling over the number of open windows.  Hopefully won't cause lots of problems!
2018-08-24 23:32:12 -04:00
MikeTheWatchGuy 4119ea8b5c Slider - range can be changed using Update, Progress Bars - Max value c an be changed on the fly when calling UpdateBar. Fixed bug when multiple bars on one form 2018-08-24 22:47:21 -04:00
MikeTheWatchGuy 53e0c25a02 Chaned how wrapping in Text Elements work, changed MsgBox to use new wrapping
More risky Text Element changes
2018-08-24 07:57:22 -04:00
MikeTheWatchGuy a2e8b0fad3 Added Slider Update method, reworking of how Text Elements wrap (risky change), rework how MsgBox wraps
Some risky changes to how text wraps, but hopefully these will fix problems of forms being way too wide.

Also added Update to Slider Element.  This allows it to be used for things like tracking progress in a song being played.
2018-08-24 07:45:31 -04:00
MikeTheWatchGuy cc96d52ae4 Added ability to change button colors using Update method 2018-08-23 14:17:46 -04:00
MikeTheWatchGuy fcdd58ae83 Protection around update in case form was manually closed 2018-08-23 14:10:58 -04:00
MikeTheWatchGuy a57fc79706 Update method for Buttons 2018-08-23 13:50:20 -04:00
MikeTheWatchGuy dcbbf319eb Update method for Text Element now includes colors 2018-08-23 12:45:51 -04:00
MikeTheWatchGuy 9a8ece087e Support for Listbox.Update 2018-08-23 12:30:35 -04:00
MikeTheWatchGuy 8f4e0e182a New GetScreenDimension method for FlexForms 2018-08-22 17:47:32 -04:00
MikeTheWatchGuy b1829438a9 Adjusted wraplength, Updated demo program that displays PNG files 2018-08-22 17:14:58 -04:00
MikeTheWatchGuy 3f64564ad2 Fix for column crash due to keyboard feature, struggling with message box sizes and wrapping 2018-08-22 15:48:28 -04:00
MikeTheWatchGuy 945625b388 More Wraplength changes for Text Elements
Struggling to get wrapping to work
2018-08-22 14:35:33 -04:00
MikeTheWatchGuy b975c4f188 Image.Update now resizes TK Label that contains it, removed wraplen setting in text label configure
Having trouble with text wrapping.  Ended up removing the wraplen from call to tktext_label.configure.
2018-08-22 13:58:04 -04:00
MikeTheWatchGuy 150779ba1c New "get" methods. Get+Update for Checkboxes, Get for TextInput, Get for Multiline, New shortcut funcs 2018-08-22 11:37:51 -04:00
MikeTheWatchGuy 1889a706f8 Fix mouse up bug 2018-08-21 20:21:03 -04:00
MikeTheWatchGuy b431d8acb8
Merge branch 'master' into Dev-latest 2018-08-21 19:04:04 -04:00
MikeTheWatchGuy a4461313ae Added text justification setting to FlexForm 2018-08-21 18:29:32 -04:00
MikeTheWatchGuy 1d61773df6 Option added to Image.UIpdate to create a new PhotoImage 2018-08-21 13:10:05 -04:00
MikeTheWatchGuy 23123c5320 Fix for missing results on persistent form 2018-08-21 10:33:42 -04:00
MikeTheWatchGuy 240a0a71e4 Mouse scroll wheel! New PDF viewer demo 2018-08-20 23:45:09 -04:00
MikeTheWatchGuy c482dee57e Update method for InputText element 2018-08-20 21:59:00 -04:00
MikeTheWatchGuy 4667a2f3ff New use_default_focus option for forms. 2018-08-20 20:47:24 -04:00
MikeTheWatchGuy 88bdf72d8a Removed a commment 2018-08-20 18:44:33 -04:00
MikeTheWatchGuy 51ea64ce07 Removed print 2018-08-20 15:51:29 -04:00
MikeTheWatchGuy aa2d31f24b Added non-blocking form keyboard binding
If the form is a non-blocking form, when a key is pressed, the form will continuously return that key as being pressed until it is released.
2018-08-20 15:27:12 -04:00
MikeTheWatchGuy 1f9247e6ce Keyboard capture!
You can now have a form return the keystokes.  This is great for page-up page-down, etc.
Returned as a string in the button field..
Specified in the FlexForm call.  return_keyboard_events is the boolean parameter.
2018-08-20 13:48:02 -04:00
MikeTheWatchGuy beebcbab0c Turned off 2 debug print statements, incomplete keyboard feature
Also has some code for Keyboard handling, but it's incomplete
2018-08-19 20:59:08 -04:00
MikeTheWatchGuy a6d375f8a1 New Image features - load from RAM, update with new image 2018-08-18 23:19:11 -04:00
MikeTheWatchGuy 6ef5af6746 Fixes, listbox scroll bars, more button lazy funcs,
Fixed output  element scrollbar length
Added scroll bar to listbox
New FileSaveAs, SaveAs, Save, Exit button functions
Fixed button width bug
Fixed button outline around images on Raspberry Pi
Set border width = 0 for sliders
2018-08-18 16:55:21 -04:00
MikeTheWatchGuy cf9b11e75c Pulling down current Master version 2018-08-18 16:52:24 -04:00
MikeTheWatchGuy 6a6ed02a02 Look and feel calls, text colors
New values in Look and Feel table.  Recipes call the new look and feel func.
2018-08-16 09:21:30 -04:00
MikeTheWatchGuy b757caa18d Columns!!
Columns feature, fix for opening multiple windows.
2018-08-14 16:49:36 -04:00
MikeTheWatchGuy d0ab0c42c5 Autosize text now TRUE by default, Remove progress bar target, cleanup how return values made, ChangeLookAndFeel func 2018-08-12 17:45:12 -04:00
MikeTheWatchGuy 148a1049ba Fix for sliders (again) 2018-08-11 22:43:09 -04:00
MikeTheWatchGuy 36b12763a6 ROLLING BACK to Aug 10 before ListDict 2018-08-11 22:31:42 -04:00
MikeTheWatchGuy 86f2f60120 Fix for missing slider results, ChangeLookAndFeel feature 2018-08-11 19:29:38 -04:00
MikeTheWatchGuy 14ca11a795 Autosize text now defaults to True! 2018-08-11 05:33:14 -04:00
MikeTheWatchGuy d6ff296d9f Better results printing 2018-08-10 17:38:31 -04:00
MikeTheWatchGuy 5abcd7c546 ListDict always returned now.... hybrid list & dictionary
Now all return values are through a new class called ListDict. It's an ordered dictionary that allows access like a dictionary and a list.
2018-08-10 16:16:16 -04:00
MikeTheWatchGuy 2b98a23434 NEW cookbook! New do_not_clear option for inputs, fix for window flash problem 2018-08-10 09:15:19 -04:00
MikeTheWatchGuy 7e1ff1d543 New Multi-line update option 2018-08-09 13:00:50 -04:00
MikeTheWatchGuy 9c1ebeb0b4 Removed need to flag a form as one returning a dictionary 2018-08-09 11:37:44 -04:00
MikeTheWatchGuy 49e89c7875 Focus set and return key handling options
Exposed the ability to set where the initial forus is as well as which elements should be bound to the return key.
2018-08-09 09:35:21 -04:00
MikeTheWatchGuy 984f4b6d72 Dictionary Return Values!
Return values in dictionary form, removed random colors capability
2018-08-08 10:40:40 -04:00
MikeTheWatchGuy d603ab04bd Text color option for all elements, New None value for checkbox initial value 2018-08-07 07:30:51 -04:00
MikeTheWatchGuy 99035fb5e8 A bunch of fixes
Removed some color defaults
Added _ to some class methods so users won't get confused and call them.  _close in particular.
Fix for combobox problem
Fixed CRASH when using tabbed forms demo due to rename _
Removed random colors
2018-08-06 12:20:18 -04:00
MikeTheWatchGuy e4a9f80489 Realtime Buttons
New type of button, the realtime button, allows buttons to be 'polled'.  They register as pushed as soon as the button goes down versus click which happens when you release the button.
2018-07-30 23:50:52 -04:00
MikeTheWatchGuy 9386ec8fc1 Window location global setting
Added ability to change the default location of the window from centered to any value.
2018-07-30 17:00:42 -04:00
MikeTheWatchGuy e9ac588ab8 Element Docstrings
Added Docstrings to the elements... it's a start
2018-07-28 14:41:56 -04:00
MikeTheWatchGuy 4895ab61f2 RELEASE 2.6
New setting for Button Element sizing.  System-wide DEFAULT_AUTO_SIZE_BUTTONS.  Can also be set at the form level.
This will greatly compact code.
2018-07-27 15:45:38 -04:00
MikeTheWatchGuy 60173f9b6c RELEASE 2.5
Background colors.  Readme for 2.5
2018-07-26 19:53:17 -04:00
MikeTheWatchGuy b7eb946027 RELEASE 2.4 (early)
Wasn't building correctly on Raspberry Pi and wanted to correct it quickly.  Am not paracticing  good source code management!
2018-07-24 14:12:39 -04:00
MikeTheWatchGuy f3bee1687e 2.3 Release
Large change to ReadMe and Recipes.  Some functions renamed or a new name was created, leaving legacy name in place... for now.  As long as docs steer people in the direction of the new names it'll be ok
2018-07-23 15:14:34 -04:00
MikeTheWatchGuy f331661a3a LOTS of changes and new additions
Text justification for Text Elems
NEW Image Element
OutputFlush renamed to Refresh
More shorthand functions - Combo, Dropdown, Drop,
EasyPrint - output of stdout, stderr to a window
2018-07-20 20:07:04 -04:00
MikeTheWatchGuy 41a3567501 Changed default border widths, global options, color charts
Added ability to get a ton of global options.  Also made the defaults look a little more "flat".  The super-raised look was dated.
Changes made to Progress Meters optional parms.
Checking in 3 color naming guides
2018-07-18 15:11:22 -04:00
MikeTheWatchGuy e1ce8d591b password_char option. SetOptions function
Added a new "password_char" option to the InputText Element .  Set to "*" to hide characters entered.
SetOptions function - sets global defaults.
2018-07-17 22:08:11 -04:00
MikeTheWatchGuy 951f3f1a6d New Form Function - CloseNonBlockingForm, fix for context managers
Previously an exception within the "with" block was not correctly passing along exceptions.

New function to help with non-blocking forms.  For forms that need to be closed that haven't been closed by a button, a new function was needed.  CloseNonBlockingForm is the new function.
2018-07-17 13:43:58 -04:00
MikeTheWatchGuy ed79ffca93 Fixed Font variable, new Quit lazy function
Forgot a couple of variables named Font that should be font.
Added a new Lazy function Quit() which adds a SimpleButton with text 'Quit'.
2018-07-16 18:36:17 -04:00
MikeTheWatchGuy 0ec43ac112 Renamed ALL oprtional parameters
Switched from CamelCase to all_lower_case
2018-07-16 14:52:16 -04:00
MikeTheWatchGuy a77dc1c724 Fixed message box text width, renamed Display Hash, added Duplicate file finder
FINALLY got the message box text width sizing correct.  Required change to Text Elements so watch out for possible side effects.
Added a new Duplicate File Finder demo program that uses an input form an a progress meter
2018-07-15 19:21:06 -04:00
MikeTheWatchGuy 338bf78b54 Renamed Text to ButtonText
Fixed up the API naming a little to be more clear when it came to button text.
2018-07-13 21:43:01 -04:00
MikeTheWatchGuy a430c86ad2 Readme updates. Button color
Still working on completing the Readme.  Changed the global button colors to white on black, the new signature for PySimpleGUI.
2018-07-13 10:53:50 -04:00
MikeTheWatchGuy f35fa97dfe Uploaded to PyPi 2018-07-11 19:18:34 -04:00
MikeTheWatchGuy e251cf95ee Initial checkin
Initial checkin using new rep
2018-07-11 15:19:24 -04:00