Questions tagged [nicegui]

Links

28 questions
1
vote
1 answer

Binding and updating values from select option to table row cells in NiceGUI

I have multiple different tabs that all collect data based on multiple different dropdowns and inputs in a class specific to each tab. As a verification of this process, I decided to output the state dictionary of the specific class of the tab in…
cjk5642
  • 35
  • 4
1
vote
1 answer

How can I create a table with the filter option using the nicegui framework?

I am trying to create a table having the filter option using any column value in nicegui but unable to do so I tried to document but It is not very clear to understand that, There are no examples on the internet as well. I am new to nicegui.
1
vote
1 answer

Get the selected date from python/nicegui

I have two functions for getting date from user, which are: def date_selector(): with ui.input('Date') as date: with date.add_slot('append'): ui.icon('edit_calendar').on('click', lambda:…
kur ag
  • 591
  • 8
  • 19
1
vote
1 answer

Binding variable in loop changes it's type

I'm trying to make some order in a script that uses nicegui. I'm using a dictionary to store all button labels and the pages they will redirect to. I'm iterating over all keys in pages dictionary and calling ui.button for each of them. from nicegui…
redistor
  • 11
  • 2
1
vote
1 answer

How do I put in a click event on each bar in a ui.chart (nicegui)?

My website has multiple charts and I'm trying to link them together so when the user clicks on a bar in one chart, all other charts on the website update to show only data related to that bar. Not sure whether the click event is working, the…
clj55
  • 13
  • 3
1
vote
0 answers

Radio button still bound to previously defined variable

I'm trying to show a radio button with the options argument being a dict, then changing that dict in a function and trying to update the radio button for it to show the new option. The code for this is the following: from nicegui import ui class…
1
vote
1 answer

Why is NiceGUI displaying a notification before the function with the notification is called?

When I run this code, I'm expecting the "running action" notification to not be shown until the action function is called, similar to how the "handling upload" notification is not shown until the handle_upload function is called. I'm not sure why it…
nopori
  • 76
  • 5
1
vote
2 answers

NiceGUI unable to make a variable global

I am trying to use NiceGUI to create a website using NiceGUI's default text input code. This code works well, however, I need to globally expose the variable e.value however I failed to using a simple "=". I attempted to set e.value as a variable…
1
vote
1 answer

Why does my table disappear after I try to sort data by one of the fields after calling the on_change callback in ui.select?

from nicegui import ui I am going to sort the table in descending order table = ui.table({ 'columnDefs': [ {'headerName': 'Task id', 'field': 'taskId'}, ], 'rowData': [ {'taskId': 1,}, {'taskId': 2,}, …
Stan Sakun
  • 35
  • 5
1
vote
1 answer

How can i make button in table cell using NiceGui library?

from nicegui import ui Called when a button in a cell is clicked: def buttonClick(*args): print(args) table = ui.table({ 'columnDefs': [ {'headerName': 'Task id', 'field': 'taskId'}, This is how i am trying to add a button to…
Stan Sakun
  • 35
  • 5
0
votes
1 answer

How to set the width of a ui.input

https://nicegui.io/documentation/input shows the example: from nicegui import ui ui.input(label='Text', placeholder='start typing', on_change=lambda e: result.set_text('you typed: ' + e.value), validation={'Input too long': lambda…
Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
0
votes
0 answers

NotImplementedError when try to start Playwright browser via NiceGui

Error NotImplementedError raises when I try to start Playwright browser "context" by clicking NiceGui button. I also use Thread for multibrowsing in future. nicegui_program.py from nicegui import ui from threading import Thread from…
-1
votes
1 answer

ui.video with changing sources (extra: overlay feature)

I'd like to add support for a video that is synchronized with the track and map display in http://nicetrack.bitplan.com see #66 #907. I have implemented a VideoStream class to make sure that the range header is respected see…
Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
1
2