Akascape / CTkTable

Customtkinter Table widget (extension/add-on)
MIT License
265 stars 15 forks source link

Using .insert() or .edit_column() results in error #22

Closed ghost closed 1 year ago

ghost commented 1 year ago
Traceback (most recent call last):
  File "/Users/dishb/Repositories/ScreenExtend/screen_extend.py", line 161, in <module>
    app = ScreenExtend(1200, 900)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dishb/Repositories/ScreenExtend/screen_extend.py", line 62, in __init__
    self.devices = Devices(self, self.font)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dishb/Repositories/ScreenExtend/widgets/devices.py", line 62, in __init__
    self.add_device("device 2", "ip 2")
  File "/Users/dishb/Repositories/ScreenExtend/widgets/devices.py", line 83, in add_device
    self.table.add_row(values = new_row,
  File "/Users/dishb/Repositories/ScreenExtend/widgets/CTkTable/ctktable.py", line 231, in add_row
    self.draw_table(**kwargs)
  File "/Users/dishb/Repositories/ScreenExtend/widgets/CTkTable/ctktable.py", line 165, in draw_table
    self.frame[i,j] = customtkinter.CTkButton(self, background_corner_colors=corners,
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: customtkinter.windows.widgets.ctk_button.CTkButton() got multiple values for keyword argument 'fg_color'

I'm calling the .edit_column() method right after creating a row with the default fg_color. In the .edit_column() method, I specify the fg_color as "red".

Akascape commented 1 year ago

@dishb Fixed.

ghost commented 1 year ago

*deleted - I forgot to re-download the library