Commit Graph

28 Commits

Author SHA1 Message Date
rdb 37b5c9ad9e direct: More code style changes 2023-02-22 11:52:19 +01:00
WMOkiishi c7c70bc32a
direct: Cut down on usage of `import *` (#1454)
* Remove most `import *`s in `direct`

* Address feedback
2023-02-12 13:16:52 +00:00
rdb 0e36a99574 Merge branch 'release/1.10.x' 2021-03-22 15:45:45 +01:00
rdb fe29aab568 dgui: Reset DirectOptionMenu highlighted index when replacing items
Not doing this causes issues if the item list is replaced by an item callback, since that means the unhighlight callback is never fired.

Fixes #1125
2021-03-22 10:08:31 +01:00
rdb be9dde1eee direct: add .pylintrc, perform major code cleanup pass
Closes #989

Co-authored-by: Daniel Stokes <kupomail@gmail.com>
2020-12-31 01:36:23 +01:00
rdb 2e3b350510 dgui: allow creating DirectOptionMenu without ShowBase 2019-11-03 12:12:42 +01:00
fireclawthefox eb3b45ebb1 dgui: Fix reset text scale on DirectOptionMenu item unhighlight
Set text scale to previous unhighlighted scale on unhighlight to keep
custom scales
2019-11-03 11:51:36 +01:00
rdb 22e88a5b6a direct: a few improvements to API documentation 2019-11-02 19:41:11 +01:00
rdb 7ab377f28e dgui: fix option menu's cancelFrame not working in scrolled frame
Fixes #658
2019-07-29 13:07:26 +02:00
Fireclaw 387b43adde dgui: Fix popupMarker_pos related crash
Set initial popupMarker position to previous default by using None as default
2019-06-07 22:13:25 +02:00
Maverick Liberty 4d33db2028 DirectOptionMenu: Fix popup menu reset of the popup marker's pos
Also defines popupMarker_pos and raises an assertion error if #showPopupMenu() is called when no items have been specified.

Fixes #636
Closes #637
2019-05-01 17:23:04 +02: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 23bf9ea5c7 The direct tree is now valid Python 2 *and* 3 2016-03-28 22:33:30 +02:00
mfwass f8837999ed Cleanup trailing whitespace 2015-12-13 10:08:41 -05: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
David Rose f1c5c8ecaf integrate gui sound fixes from community member Bruce Smith 2011-11-02 21:13:03 +00:00
Asad M. Zaman f96a97a722 fix for the new import rule 2006-08-11 01:39:35 +00:00
Josh Yelon 1b058da878 Added __all__ declarations 2006-08-09 20:49:19 +00:00
Chris Brunner 3224887a2b adding ability to have highlighted menu items also change scale in addition to color 2006-06-21 00:23:42 +00:00
Dave Schuyler 64a75159c6 formatting 2006-03-17 23:32:40 +00:00
Dave Schuyler ea53570eef formatting 2006-01-27 01:00:28 +00:00
Mike Goslin 966e57d3be Removed avatar2d as default argument to avoid import order problem - avatar2d now gets filled in after ShowBase is constructed. 2004-05-05 00:12:48 +00:00
Mark Mine d9f964c51c Updated Direct Frame to use text_mayChange syntax
Updated DirectOptionMenu to allow selection when holding down mouse button
2002-10-08 00:32:12 +00:00
Mark Mine db8f2ba387 Popup menu at button midpoint 2002-10-04 01:39:13 +00:00
Mark Mine 74d7670f8e Use new draw bin for popup menu 2002-08-30 19:35:15 +00:00
Mark Mine 7bb55e32ef Fix destroy 2002-08-23 16:22:55 +00:00
Mark Mine c5f0f39804 Fix to lack of cancel. Adjust alignment of popup 2002-08-13 17:55:43 +00:00
Mark Mine 4b3278ad69 New code to support popup option menu 2002-08-10 23:20:21 +00:00