rdb
822f89fadb
dgui: accept arg in setText, setImage, setGeom, also add clearers
...
This enables the "setters" to behave in a way that people expect setters to behave. Since `setText(None)` now does not behave expectedly, a `clearText()` has also been added to remove the text.
Closes #385
2018-09-13 21:14:04 +02:00
Sebastian Hoffmann
78377ca10c
Cursor after newline character appears on beginning of next line.
...
DirectEntry.updateNumLines updates text geom.
DirectEntry API less inadequate.
Closes #257
2018-03-30 20:17:31 +02:00
rdb
aa90b7b0c0
showbase: disable track-gui-items by default, remove want-e3-hacks
2018-02-23 22:26:27 +01:00
rdb
e6c2d3b609
showbase: allow DirectGui elements to be created before ShowBase
...
This is done by precreating aspect2d inside ShowBaseGlobal.
2018-02-23 22:15:34 +01:00
fireclawthefox
f2cf391a2e
gui: add simple way to enable overflow in DirectEntry
...
Closes #236
2018-01-24 19:17:50 +01:00
rdb
d576c6b638
Improvements to generated API docs, especially in direct tree.
...
Also add an entry point for pfreeze.
2017-05-24 13:30:21 +02:00
rdb
160f652d58
text: use HarfBuzz for text shaping; support right-to-left text
2017-04-25 12:25:31 +02:00
Mitchell Stokes
59b0913b0b
Cleanup .gitignore files
...
Remove all .gitignore files in subdirectories and add a few new ignores
to the top-level directory .gitignore file.
2016-10-30 20:06:12 -07:00
rdb
d43f0ef909
Fix DirectScrolledList regression
2016-10-28 12:09:14 +02:00
rdb
12af395012
Fixes to DirectScrolledList; remove unnecessary inheritance
2016-04-09 19:21:49 +02:00
deflected
9300bca1a4
direct.gui: Correct strings checks
...
- str in Python3 is always unicode, but not in Python2.
Avoid crashes when unicode is used
Signed-off-by: deflected <deflected@github>
2016-04-01 21:18:52 +02:00
Dennis Brakhane
ed9bed425f
do not mutate dict we are iterating over
...
Risky at best, and actually raises an error on modern Python versions.
2016-03-29 19:45:37 +02:00
rdb
23bf9ea5c7
The direct tree is now valid Python 2 *and* 3
2016-03-28 22:33:30 +02:00
rdb
54fa31ba17
StandardError -> Exception, other 2to3 changes, threaded 2to3
2016-03-25 17:13:09 +01:00
rdb
0d03207d1b
Dramatically reduce size of frozen/compiled code by pruning/masking unnecessary imports/code
2016-02-12 22:20:27 +01:00
rdb
03c8d4c009
Fix use of many builtins
2016-02-02 13:41:20 +01:00
assertivist
e567cb1dba
Allow setting width and numLines of DirectEntry without clearing text
2016-01-18 11:29:36 -07:00
rdb
dafe48a6bc
Begin to add snake_case/property interfaces to important direct classes
2015-12-26 17:00:51 +01:00
mfwass
f8837999ed
Cleanup trailing whitespace
2015-12-13 10:08:41 -05:00
rdb
32367fcbdc
Fix various import issues in the direct tree
2015-12-06 22:36:05 +01:00
rdb
3c2f820ad8
Merge branch 'release/1.9.x'
...
Conflicts:
direct/src/p3d/DeploymentTools.py
2015-11-24 13:39:36 +01:00
rdb
2745f11b65
Add back ability to change default relief and frameSize of DirectDialog
2015-11-24 13:33:09 +01:00
rdb
db3ab953e4
Remove ppremake, genPyCode, and all hacks created to support them
2015-11-09 19:06:49 +01:00
rdb
0eeec6b02f
Merge and expand on config fix from 'release/1.9.x'
2015-07-06 15:54:45 +02:00
rdb
2514ca29d8
Fix config error when DirectGuiBase is imported before ShowBase
2015-07-06 15:52:57 +02:00
rdb
d9342043b0
Deprecate pandac.PandaModules and genPyCode, move extensions to panda3d/, clean up imports and deprecated behaviour
2015-06-28 13:55:31 +02:00
alan eborn
178c16e94b
DirectRadioButton--removal of model-loading by default and indicator handling
...
Signed-off-by: rdb <git@rdb.name>
2015-02-28 15:25:05 +01:00
alan eborn
2e555db30e
DirectDialog--removal of model-loading by default and a bug-fix
...
Signed-off-by: rdb <git@rdb.name>
2015-02-28 15:21:24 +01:00
rdb
862e22e548
remove Python-2-isms from DirectGui and FSM to make them work with Python 3
2014-05-19 17:33:36 +00:00
rdb
51dffd0f5a
Commit patch by cfsworks to clean up use of exec() and eval()
2014-04-16 13:09:12 +00:00
rdb
88048bf3da
Fix use of has_key and map()
2013-12-17 19:49:09 +00:00
David Rose
807a6f61da
Add patch from community member teedee to improve alternate coordinate-system support
2011-11-17 19:41:33 +00:00
David Rose
f1c5c8ecaf
integrate gui sound fixes from community member Bruce Smith
2011-11-02 21:13:03 +00:00
David Rose
f195d4d462
contributes from forum user to make DirectGui coordinate-system agnostic
2011-08-03 23:41:19 +00:00
rdb
804a72b716
Partially apply typo fix patch I found somewhere on the web, by someone named Christoph Korn
2010-11-16 08:58:45 +00:00
David Rose
24f0ffafc6
initialText should leave cursor at end of text
2010-05-10 21:08:36 +00:00
rdb
ac1223d0da
Ditch stuff like has_key and backticks
2010-03-19 10:32:09 +00:00
David Rose
5d8b61ca86
PGFrameStyle::T_texture_border
2009-12-13 07:20:23 +00:00
John Loehrlein
06fa43a83b
removed pointer in base. Added a comment about scale on the entry not working
2009-08-31 20:48:49 +00:00
David Rose
81363c4ba9
PackageInstaller, runtime package installation
2009-08-25 21:40:57 +00:00
David Rose
53ba5b162d
default borderWidth = 0.01 for DirectScrolledFrame
2009-08-12 22:48:51 +00:00
rdb
1fe0e144c9
Work around a weird crash
2009-05-28 08:27:34 +00:00
Josh Wilson
713dc5902a
adding okMissing=True to dialog_box_gui
2009-04-16 22:43:34 +00:00
John Loehrlein
e4b210d607
direct entry scroll, a virtual window for direct entries
2009-01-23 20:05:19 +00:00
Gyedo Jeon
33d862d42b
Made indicatorValue not passed to command
2009-01-08 21:45:14 +00:00
David Rose
1706138704
export text types
2009-01-08 12:25:32 +00:00
rdb
38467b6eed
Fix confusing typo
2008-12-18 18:17:28 +00:00
David Rose
4d39d16a69
default mayChange = True
2008-12-17 14:55:03 +00:00
rdb
d14ebd80aa
Documented this file
2008-12-11 09:18:33 +00:00
Darren Ranalli
2a0ccbf137
added getFont()
2008-11-26 23:01:27 +00:00