Commit Graph

101 Commits

Author SHA1 Message Date
rdb ecc1e30ef6 Merge branch 'release/1.10.x' 2024-01-23 16:56:38 +01:00
rdb 8c74919a8b dgui: Make copy of mutable default value
Fixes #1587
2024-01-23 14:51:44 +01:00
WMOkiishi 32edfa43fd direct: Get direct to pass a mypy check
Closes #1476
2023-08-04 14:31:44 +02:00
WMOkiishi d1f4212acd direct: Utilize the built-in `sorted` function
Closes #1479
2023-08-02 08:37:51 +02:00
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 d7bbcfb0b7 pstats: Some collector reorganisation:
- "App:Show code:General" is gone, it was causing too much trouble
- Replace odd "Client::GuiObjects" with "Nodes:GUI"
- Regroup "Dirty PipelineCyclers" underneath "PipelineCyclers"
2022-02-17 12:48:36 +01:00
rdb 3fe1780f16 direct: Fix use of various deprecated APIs 2021-03-09 19:21:26 +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 d799a09002 cleanup: Remove support for EOL versions of Python
Fixes #905
2020-04-26 20:07:56 +02:00
rdb f149fb4ab0 direct: big formatting changes for the benefit of API reference
Part of the effort to move the API reference to Sphinx, see panda3d/panda3d-docs#21
2019-10-29 20:43:41 +01:00
rdb 062460cbe0 dgui: store guiItems on ShowBase class dict instead of module 2019-08-20 01:07:39 +02:00
rdb a0aa7de291 dgui: fix critical regression introduced by 43a5719 2019-08-19 21:26:35 +02:00
rdb 43a5719bac dgui: allow using various GUI items without instantiating ShowBase
This is done by eliminating dependency on the `hidden` built-in, which can now instead be imported from ShowBaseGlobal.
2019-08-14 13:26:27 +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
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
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 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
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 88048bf3da Fix use of has_key and map() 2013-12-17 19:49:09 +00:00
David Rose f195d4d462 contributes from forum user to make DirectGui coordinate-system agnostic 2011-08-03 23:41:19 +00:00
David Rose 5d8b61ca86 PGFrameStyle::T_texture_border 2009-12-13 07:20:23 +00:00
David Rose c69c8680e8 asList() etc. no longer needed 2008-11-12 20:37:20 +00:00
Josh Wilson cf6cb4897f __dev__ -> __debug__ 2008-09-18 03:53:30 +00:00
Josh Wilson 5101b87561 allowing the call of defineoptions() in all subclasses of a direct gui object. It should now correctly process your optiondefs 2008-09-18 03:23:12 +00:00
Darren Ranalli 987c41f50a disable creation stack recording by default 2008-05-22 01:42:10 +00:00
Darren Ranalli 8e4ea9d011 fixed messenger leak stack trace print 2008-04-09 01:18:54 +00:00
Darren Ranalli ba6a59d1dc reduced memory footprint for creation stack traces 2008-03-25 00:57:44 +00:00
Josh Wilson 9da136db47 accept VBase4 as a more general Vec4 2007-09-07 22:49:08 +00:00
David Rose 9e25cda240 fix typo discovered by Panda user ThomasEgi 2007-05-16 03:21:36 +00:00
Darren Ranalli 7e54ae47b7 fix startup crash 2007-05-14 23:29:20 +00:00
Darren Ranalli f191acace1 only record creation stack in dev 2007-05-14 23:11:17 +00:00
Darren Ranalli 7267bee98a added ~guicount 2007-05-10 22:48:20 +00:00
Redmond Urbino 60b62dd82f when destroying a gui object, properly destroy it's child gui objects 2007-02-02 03:10:12 +00:00
Darren Ranalli ebd1a01733 added creation stack trace to all GUI items in __debug__ 2007-01-30 21:51:16 +00:00
Joe Shochet 91383bf77f gui elements now show their class name in their node name 2007-01-18 02:02:41 +00:00
David Rose d7dcd2bc0b add barTexture 2006-10-10 16:24:36 +00:00
Joe Shochet 6fb7334512 added unique name function 2006-09-05 05:15:08 +00:00
Redmond Urbino 09628e21d6 make toontown work with Direct revamp 2006-08-10 02:37:28 +00:00
Josh Yelon 1b058da878 Added __all__ declarations 2006-08-09 20:49:19 +00:00
Darren Ranalli df9ae1f69f don't need to check E3hacks anymore 2006-05-17 21:06:50 +00:00
Asad M. Zaman bc1570ce98 patch around e3hack for stansalone 2006-05-07 22:31:30 +00:00
Darren Ranalli b760defb50 enabled base.guiItems as an e3 hack 2006-05-06 05:43:34 +00:00