NursNurs commited on
Commit
ba33e6a
·
1 Parent(s): 078af76

Added more columns

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -229,7 +229,7 @@ if prompt:
229
  st.session_state.actions.append("result")
230
 
231
  if st.session_state.actions[-1] == "result":
232
- col1, col2 = st.columns(2)
233
  with col1:
234
  a1 = st.button('Results', key=10)
235
  with col2:
@@ -256,8 +256,11 @@ if st.session_state.actions[-1] == 'cue':
256
  write_bot('What do you want to see?', remember=False, blink=False)
257
 
258
  while guessed == False:
259
- b1 = st.button("Next letter", key="1")
260
- b2 = st.button("Next word", key="2")
 
 
 
261
 
262
  # JS
263
  word_count = st.session_state.counters["word_count"]
@@ -269,9 +272,12 @@ if st.session_state.actions[-1] == 'cue':
269
  #st.button(cue_type)
270
  cues_buttons[cue_type] = st.button(cue_type)
271
 
272
- b3 = st.button("All words", key="3")
273
- b4 = st.button("I remembered the word!", key="4", type='primary')
274
- b5 = st.button("Exit", key="5", type='primary')
 
 
 
275
 
276
  if b1:
277
  st.session_state.counters["letter_count"] += 1
 
229
  st.session_state.actions.append("result")
230
 
231
  if st.session_state.actions[-1] == "result":
232
+ col1, col2, col3, col4, col5 = st.columns(5)
233
  with col1:
234
  a1 = st.button('Results', key=10)
235
  with col2:
 
256
  write_bot('What do you want to see?', remember=False, blink=False)
257
 
258
  while guessed == False:
259
+ col1, col2, col3, col4, col5 = st.columns(5)
260
+ with col1:
261
+ b1 = st.button("Next letter", key="1")
262
+ with col2L
263
+ b2 = st.button("Next word", key="2")
264
 
265
  # JS
266
  word_count = st.session_state.counters["word_count"]
 
272
  #st.button(cue_type)
273
  cues_buttons[cue_type] = st.button(cue_type)
274
 
275
+ with col3:
276
+ b3 = st.button("All words", key="3")
277
+ with col4:
278
+ b4 = st.button("I remembered the word!", key="4", type='primary')
279
+ with col5:
280
+ b5 = st.button("Exit", key="5", type='primary')
281
 
282
  if b1:
283
  st.session_state.counters["letter_count"] += 1