Example #1
0
    def line(self,X1, X2):
        """
            line(<tuple crd from>,<tuple crd to>)

            or

        """
        
        fblib.fbline(X1[0], X1[1], X2[0], X2[1])
        return 0
Example #2
0
    def line(self, X1, X2):
        """
            line(<tuple crd from>,<tuple crd to>)

            or

        """

        fblib.fbline(X1[0], X1[1], X2[0], X2[1])
        return 0
Example #3
0
    def rect(self, X1, X2):
        """
            rect(<tuple>, <tuple>, <fb color>, <style>)
            
            Will draw a rectangle @ first tuple, width and height
            as in second tuple


        """

        fblib.fbline(X1[0],X1[1],X2[0],X1[1])
        fblib.fbline(X1[0],X1[1],X1[0],X2[1])
        fblib.fbline(X1[0],X2[1],X2[0],X2[1])
        fblib.fbline(X2[0],X1[1],X2[0],X2[1])
        #return Rect(self, X1, X2, color)
        return 0
Example #4
0
    def rect(self, X1, X2):
        """
            rect(<tuple>, <tuple>, <fb color>, <style>)
            
            Will draw a rectangle @ first tuple, width and height
            as in second tuple


        """

        fblib.fbline(X1[0], X1[1], X2[0], X1[1])
        fblib.fbline(X1[0], X1[1], X1[0], X2[1])
        fblib.fbline(X1[0], X2[1], X2[0], X2[1])
        fblib.fbline(X2[0], X1[1], X2[0], X2[1])
        #return Rect(self, X1, X2, color)
        return 0