简体   繁体   English

使用 input() 函数通过 python 脚本在 Power BI 中弹出

[英]Popup in power BI via python scripts using input() function

we are trying to get popup in POWER BI using python input() function, where user can provide the input and then scripts will load the data for particular business unit.我们正在尝试使用 python input() 函数在 POWER BI 中弹出窗口,用户可以在其中提供输入,然后脚本将加载特定业务部门的数据。

这个,我们正在尝试power BI

这是我们通过 python 脚本在 POWER BI 中加载数据时想要的

Thank you in advance for your suggestions and help.预先感谢您的建议和帮助。

If you want a popup, you can use the in-built tkinter library simpledialog module.如果你想要一个弹出窗口,你可以使用内置的tkintersimpledialog模块。

Here's a minimal example:这是一个最小的例子:

import tkinter
from tkinter import simpledialog
root = tkinter.Tk()
# hide the root window because we only want to show dialogs
root.withdraw()
value = simpledialog.askinteger("My Title", "Enter an integer")
print(f"Value entered {value}")

This will show a popup looking like:这将显示一个弹出窗口,如下所示:

tkinter.simpledialog.askinteger

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM