Hello,

how can i block widget wx.TextCtrl ?

Recommended Answers

All 4 Replies

What do you mean by block?
Just don't use it?

I want get valuve for this widget, next block this widget. When i write block i mean you cant use this widget. Sorry, but my EN is lowwww.

I find - style=wx.TE_READONLY

THX

another way is to use the method Enable()

# declare text ctrl
txt = wx.TextCtrl(...,...)
# write to text box
txt.SetValue(...)
# disable text box
txt.Enable(False)

# enable back text box
txt.Enable(True)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.