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
rdb
f7718b466b
direct: Fix assorted issues when using mypyc
2023-10-10 12:52:26 +02:00
WMOkiishi
32edfa43fd
direct: Get direct to pass a mypy check
...
Closes #1476
2023-08-04 14:31:44 +02:00
WMOkiishi
f7f3179a89
Move test code from across `direct` to proper test modules
...
Closes #1480
2023-08-02 08:37:51 +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
rdb
8b1126ba3e
direct: General cleanup of Python code
2023-02-20 20:52:14 +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
5de31c6293
Merge branch 'release/1.10.x'
2021-12-04 21:57:35 +01:00
rdb
24755bc8eb
gui: Allow OnscreenImage to be used before ShowBase is created
...
Use TexturePool directly instead of a loader being present in the builtins
Fixes #1209
2021-12-04 20:40:29 +01:00
rdb
5be46c4124
dgui: Fix DirectSlider unit test failure
2021-04-08 12:28:22 +02: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
3fe1780f16
direct: Fix use of various deprecated APIs
2021-03-09 19:21:26 +01:00
Timothy Paustian
2493c0689f
direct: Use warnings module for more verbose deprecation prints
...
Closes #1067
Fixes #669
2021-03-09 18:34:53 +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
b38e9d552a
Merge branch 'release/1.10.x'
2020-12-28 16:26:48 +01:00
rdb
e7a6d735e3
dgui: Add "versionadded" to docstrings of newly added methods
2020-12-27 10:48:12 +01:00
rdb
2156e6deb2
Merge branch 'release/1.10.x'
2020-12-26 14:00:29 +01:00
rdb
d5c2dc6447
dgui: Add setTextPos, etc. aliases for setPos
...
setPos will be deprecated in a future version.
See #1041
2020-12-26 13:59:19 +01:00
rdb
a5ae292c3e
Merge branch 'release/1.10.x'
2020-12-18 12:56:31 +01:00
rdb
8883bf9bdd
dgui: Fix ability to create OnscreenGeom/Image/Text without ShowBase
2020-12-15 11:45:52 +01:00
rdb
921cbc6bae
Merge commit 'e0d34131822a8852ff72dc9c5597f4dc6900719a'
2020-09-13 16:17:06 +02:00
rdb
4e8ee5bae5
dgui: Add snake_case aliases for DirectGuiGlobals
2020-09-13 15:17:02 +02:00
rdb
d799a09002
cleanup: Remove support for EOL versions of Python
...
Fixes #905
2020-04-26 20:07:56 +02:00
rdb
f524f00e8e
Merge branch 'release/1.10.x'
2020-03-14 15:01:38 +01:00
Derzsi Dániel
32a9ea2cef
dgui: Fix DirectScrolledList scrollTo error in Python 3
...
As a rule of thumb, Python 3 divisions always have float results. Unfortunately, this piece of code is still relying on the old Python 2.7 behavior.
Closes #880
2020-03-14 14:55:32 +01:00
Fireclaw
c73415b4ba
dgui: fix sizing after changing Slider/Scrollbar orientation
...
Closes #700
2020-02-23 16:28:40 +01:00
rdb
fda898807a
Merge branch 'release/1.10.x' into master
2020-02-10 13:52:05 +01:00
Fireclaw
5d93237386
dgui: fix regression in DirectScrolledFrame (see #699 )
...
Made initialization ignore the setScrollBarWidth function
Respect the length/height of the scrollbar and only change the actual
width in the setScrollBarWidth function
Added a very basic unittest class for the scrolledFrame
Closes #864
2020-02-10 13:17:05 +01:00
rdb
b212d254d0
Merge branch 'release/1.10.x' into incoming
2020-01-07 22:09:59 +01:00
rdb
a50d375c35
dgui: fix DirectSlider regression on Python 2
2020-01-07 22:07:39 +01:00
rdb
6b12fbe6f2
dgui: show assertion when passing a NaN into DirectSlider
...
If we don't do this, we get an assertion somewhere in the bowels of the scene graph, which will be much less helpful for tracking down the origin of the NaN.
2020-01-07 21:41:04 +01:00
rdb
3755e157bf
dgui: remove erroneous `p3d.` prefix (regression from #819 )
2019-12-30 03:24:16 +01:00
LD
88fd65394b
dgui: Add DirectGui events for wheel up and down mouse events
...
Closes #819
2019-12-30 03:07:52 +01:00
Derzsi Dániel
9455fb3f73
dgui: resolve DirectFrame regression
...
Closes #810
2019-12-20 11:44:25 +01:00
max
2ca37b8c97
dgui: refactor code common to DirectFrame setGeom, setImage, setText
...
Closes #776
Co-authored-by: rdb <git@rdb.name>
2019-12-11 17:57:15 +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
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
Aidan Noll
984d70e8e0
dgui: update DirectScrolledList type checking for Python 2/3 compatibility
2019-10-05 21:10:05 +02: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
fireclawthefox
24d48d8cb0
dgui: allow setting DirectEntryScroll entry after the fact
...
Closes #702
2019-08-14 13:31:08 +02:00
rdb
5c99cf16f8
dgui: fix DirectEntry._autoCapitalize() on Python 3.x ( #628 )
2019-08-14 13:26:33 +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
fireclawthefox
2b64a7d74f
dgui: Scrollbar width changeable after initialization
...
Closes #699
2019-08-03 09:42:16 +02:00