Skip to content

Commit

Permalink
chat: Added password input field for api_key input
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaomar3 authored and rmackay9 committed Mar 27, 2024
1 parent 7d45a82 commit 0f1e9e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MAVProxy/modules/mavproxy_chat/chat_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def __init__(self, mpstate, wait_for_command_ack_fn):

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

0 comments on commit 0f1e9e6

Please # to comment.