Skip to content

Commit 0f1e9e6

Browse files
adityaomar3rmackay9
authored andcommitted
chat: Added password input field for api_key input
1 parent 7d45a82 commit 0f1e9e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MAVProxy/modules/mavproxy_chat/chat_window.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def __init__(self, mpstate, wait_for_command_ack_fn):
3838

3939
# add api key input window
4040
self.apikey_frame = wx.Frame(None, title="Input OpenAI API Key", size=(560, 50))
41-
self.apikey_text_input = wx.TextCtrl(self.apikey_frame, id=-1, pos=(10, 10), size=(450, -1), style=wx.TE_PROCESS_ENTER)
41+
self.apikey_text_input = wx.TextCtrl(self.apikey_frame, id=-1, pos=(10, 10), size=(450, -1),
42+
style=wx.TE_PASSWORD | wx.TE_PROCESS_ENTER)
4243
self.apikey_set_button = wx.Button(self.apikey_frame, id=-1, label="Set", pos=(470, 10), size=(75, 25))
4344
self.apikey_frame.Bind(wx.EVT_BUTTON, self.apikey_set_button_click, self.apikey_set_button)
4445
self.apikey_frame.Bind(wx.EVT_TEXT_ENTER, self.apikey_set_button_click, self.apikey_text_input)

0 commit comments

Comments
 (0)