Skip to content

Commit

Permalink
Update Line.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisal-D committed Jan 31, 2024
1 parent debb872 commit 7127cfb
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions tkchart/Line.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@

class Line():
def __init__(self ,*args ,master=None ,color="#909090" ,size=1, mode="line", mode_style=(10,5)):
class Line():
def __init__(self ,*args ,master=None ,color="#909090" ,size=1, style="line", style_type=(10,5)):
try :
self.__chart = args[0]
self.__master = args[0]
except:
self.__chart = master
self.__master = master

self.__color = color
self.__size = size
self.__y_end = 0
self.__x_end = self.__chart._LineChart__line_width* -1
self.__x_end = self.__master._LineChart__line_width* -1
self.__data = []
self.__temp_data = []
self.__hide_state = False


self.__mode = mode
self.__mode_style = mode_style
self.__style = style
self.__style_type = style_type


def configure(self , color=None ,size=None, mode=None, mode_style=None) :
def configure(self , color=None ,size=None, style=None, style_type=None) :
if color != None:
self.__color = color
if size != None:
self.__size = size

if mode != None:
self.__mode = mode
if mode_style != None:
self.__mode_style = mode_style
if style != None:
self.__style = style
if style_type != None:
self.__style_type = style_type


def __reset(self):
self.__y_end = 0
self.__x_end = self.__chart._LineChart__line_width* -1
self.__x_end = self.__master._LineChart__line_width* -1
self.__data = []

0 comments on commit 7127cfb

Please sign in to comment.