Skip to content

Releases: XiangQinxi/tkfluent

0.1.5 Version is Published !

05 Jul 05:20

Choose a tag to compare

New Features 新增

FluMenuBar New border-style
FluMenuBar新增边框样式
FluMenu新样式

Changes 修改

Considering that animation effects may cause lag on low-to-mid-range computers, animations are disabled by default. However, they can still be enabled by setting set_animation_steps and set_animation_step_time (animations will only activate if both values are non-zero).

鉴于动画效果在中低端电脑上会出现卡顿,默认取消动画,但仍可以通过set_animation_stepsset_animation_step_time启用(两个值均不为0才可启用动画)

Fixes 修复

  • Changed tkdeft dependency to strictly 0.1.1 only.

Optimized performance slightly. In the DDrawWidget._draw() method, the drawing method won't execute if the component is not mapped (i.e., not displayed on the screen using layout methods).

  • Fixed animation-related lag issues in FluToolTip.

  • Fixed an issue where FluToggleButton could still be toggled in the disabled state.

  • Fixed an issue where FluSlider could still be dragged in the disabled state.


  • 更改tkdeft依赖,只能为0.1.1

优化一点性能,DDrawWidget._draw()的方法中,如果组件未被映射(也就是说未使用布局方法显示在屏幕上,则不会执行绘制方法。)

  • 修复FluToolTip动画相关的卡顿问题

  • 修复FluToggleButton禁用状态也能切换的问题

  • 修复FluSlider禁用状态也能滑动的问题

0.1.4 Version is Published !

26 Jun 01:51

Choose a tag to compare

New Features 新增

The FluSlider component has been developed to a relatively refined state.
FluSlider滑块已经制作的较为完善

There are still areas that need improvement. For example, when holding the slider, it should move relative to the mouse rather than directly jumping to the mouse position. However, these are minor issues that can be addressed later.
仍有地方需要完善,如按住滑块时,滑块应与鼠标相对运动,而不是直接移动到鼠标位置。但这是一些无外乎的问题,可稍后解决。

FluSlider Light

FluSlider Dark

Fixes 修复

Changed tkdeft dependency to strictly version 0.1.0
更改tkdeft依赖,只能为0.1.0

0.1.3 Version is Published !

24 Jun 05:36

Choose a tag to compare

This update primarily focuses on optimizations and fixes.
本次主要为优化、修复为主

New Features 新增

  1. Added API documentation to the documentation site
  2. Added navigation links for Author's Homepage and tkadwite
  3. 文档新添api文档
  4. 文档新添作者主页tkadwite导航

Optimizations 优化

Optimized the method for determining themes and styles for some components
优化判断部分组件主题、样式的方法

Fixes

  1. Fixed an issue with numpy version dependencies. Since only basic array methods are needed, it now supports most versions. Note: numpy 2.x multi-version support only works with Python 3.11 and above, which caused installation issues for earlier versions.
  2. Changed tkdeft dependency to strictly version 0.0.9.
  3. 设置依赖numpy版本时出现问题,因只需用基本的array方法,所以能兼容大部分版本,而numpy2.x多版本只支持python3.11及以上,导致前面的版本不能安装
  4. 更改tkdeft依赖,只能为0.0.9。

0.1.2 Version is Published !

23 Jun 08:10

Choose a tag to compare

New Features 新增

Some widgets implement gradients when switching themes 部分组件实现切换主题时渐变

FluLabel implements a gradient effect
FluLabel实现了渐变效果

FluLabel实现渐变

from tkflu import *

set_animation_steps(20)
set_animation_step_time(20)

root = FluWindow()

theme_manager = FluThemeManager(root)

button = FluButton(root, text="Button", mode="light", style="standard", command=lambda: theme_manager.toggle())
button.pack(padx=20, pady=20, fill="both", expand="yes")

label = FluLabel(root, text="Label", mode="light")
label.pack(padx=20, pady=20, fill="both", expand="yes")

root.mainloop()

You can set the number of frames and the frame rate for the gradient animation 可设置渐变动画的帧数和帧率

set_animation_steps()  # 动画帧数
set_animation_step_time()  # 动画播放一帧所需的毫秒秒数

Fixes 修复

  1. Fixed a bug where the child widgets would not execute the theme() method when the FluToplevel theme was changed.

  2. Fixed the problem that the FluToggleButton gradient animation could not be modified by set_animation_steps() and set_animation_step_time().

  3. 修复了FluToplevel主题更改时,子组件不会执行theme()方法的错误。

  4. 修复了FluToggleButton渐变动画不可被set_animation_steps()set_animation_step_time()修改的问题

0.1.1 Version is Published !

23 Jun 02:17

Choose a tag to compare

New Features 新增

部分组件实现切换主题时渐变

FluButton实现渐变
FluFrame实现渐变

Improved the gradient effect of FluButton and FluFrame (not perfect)
增进多实现了FluButtonFluFrame(不太完善)的渐变效果

Soon the FluFrame border gradient will be implemented, but now it only implements the gradient effect of the container component, and the border has not yet been made, so it is not very smooth to see
不久将会实现FluFrame边框渐变,现在只是实现了容器组件的渐变效果,而边框还未制作,导致看的不是太流畅

Optimizations 优化

FluMenu实现渐变

Optimized the refresh redraw issue when switching themes for the next components such as FluMenu, so that some strange issues will not appear after redrawing
优化了下部分组件如FluMenu的切换主题时的刷新重绘问题,不会在重绘后出现一些奇怪的问题

The item that FluMenuBar creates with a add_command is actually a FluButton, so it is not included in the Add Gradient list
FluMenuBar通过add_command创建的项实际上是FluButton,因此未列入增添渐变列表

However, in practice, switching themes at high speed will also cause some components to not be rendered
不过从实际上看,高速切换主题也会导致部分组件未渲染

0.1.0 Version is Published !

22 Jun 11:13

Choose a tag to compare

New Features 新增

Some widgets support smooth gradient transitions when switching themes. 部分组件实现切换主题时渐变

Gradient

The gradient effects for FluMenuBar, FluWindow, and FluToggleButton have been implemented, yet the current outcome remains imperfect. This has inadvertently caused certain component backgrounds to fail reverting after transitions.
已经实现了FluMenuBarFluWindowFluToggleButton的渐变效果,但从实际效果上来看,还有不足。间接导致部分组件背景在切换后未转变回来。

Achieving seamless gradient transitions remains an arduous and long-term endeavor.
实现渐变效果任重而道远。

Fixes 修复

During my preliminary testing phase, I inadvertently left certain debugging print() statements within some components, resulting in unnecessary data being output during runtime.
再之前我自己测试的时候,在某些组件中留下了自己的print()测试痕迹,导致使用时,会打印出无用的数据。

0.0.9 Version is Published !

22 Jun 08:15

Choose a tag to compare

New 新增

ToolTip 工具提示

FluToolTip截图

In this version, I add one new widget -> FluToolTip
在这个版本中,我添加了一个新的小部件 -> FluToolTip

you can use it in this way
你可以这样使用

tooltip1 = FluToolTip(master, text="One useful tooltip")

or
或者

widget.tooltip(text="One useful tooltip")

Example 示例

from tkflu import *


root = FluWindow()

thememanager = FluThemeManager(root, mode="light")

button = FluButton(root, text="Click me", command=lambda: print("Clicked"), style="standard")
button.pack()

tooltip = FluToolTip(button, text="This is a tooltip")

root.mainloop()

0.0.7 Version is Published !

21 Jun 10:10

Choose a tag to compare

New 新增

Slider 滑块

FluSlider截图
In this version, I add one new widget -> FluSlider
在这个版本中,我添加了一个新的小部件 -> FluSlider

Warning! This widget is not do well, don`t use it please.
警告!这个小部件做得不好,请不要使用它。

slider1 = FluSlider(master, value=0)
slider1.pack()

New built-in theme colors 新内置主题色

Previously, there was only one built-in theme color, Orange, which could be set using orange_primary_color. Now, there are additional built-in theme colors: Red, Yellow, Blue, Green, and Purple. Each can be switched by using [colorname]_primary_color.
之前只有一个内置主题色Orange, 可以使用orange_primary_color设置,现在有Red、Yellow、Blue、Green、Purple内置主题色,分别可以使用[colorname]_primary_color切换