Page Menu
Home
Search
Configure Global Search
Log In
Files
F76930
bug_enum_icon_only_and_no_text_prop.py
Public
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
codemanx
Feb 11 2014, 7:49 PM
Size
742 B
Subscribers
None
bug_enum_icon_only_and_no_text_prop.py
View Options
import
bpy
class
HelloWorldPanel
(
bpy
.
types
.
Panel
):
"""Creates a Panel in the Object properties window"""
bl_label
=
"Hello World Panel"
bl_idname
=
"OBJECT_PT_hello"
bl_space_type
=
'VIEW_3D'
bl_region_type
=
'TOOLS'
#bl_context = "object"
def
draw
(
self
,
context
):
layout
=
self
.
layout
obj
=
context
.
object
row
=
layout
.
row
(
True
)
row
.
prop
(
context
.
space_data
,
"transform_manipulators"
,
icon_only
=
True
)
row
.
prop
(
context
.
space_data
,
"transform_orientation"
,
text
=
""
)
def
register
():
bpy
.
utils
.
register_class
(
HelloWorldPanel
)
def
unregister
():
bpy
.
utils
.
unregister_class
(
HelloWorldPanel
)
if
__name__
==
"__main__"
:
register
()
File Metadata
Details
Mime Type
text/x-c++
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a1/11/4fbbaca6b350899f0f3768519847
Event Timeline
Log In to Comment