i have written a program in tkinter to draw stock graph,there are two strange thing i can't understand
the attachment is 'AAU' data file(attachment 1).when you download it ,please save it in /tmp/AAU
there is a scrolled canvas in it ,
1.strang long line,please see my attachment.
i have see my data ,my formulation ,no wrong,but the line is so long!!
2.there is no motion event reaction in the right of canvas,only motion event reaction in the left of canvas.
3.i have round function ,but the output is still more fractions than 2.
Expand|Select|Wrap|Line Numbers
#coding:utf-8
from Tkinter import *
import string
class hdraw(object):
def __init__(self,fname):
file='/tmp/'+fname
self.stock=fname
self.data=(open(file,'r').readlines())[1:-1]
self.data.reverse()
self.xsqueen=range(0,len(self.data)*2,2)
self.pairs=len(self.data)
#Open,High,Low,Close,Volume,Adj Close
self.date =[i.split(',')[0] for i in self.data]
self.open =[string.atof(i.split(',')[1]) for i in self.data]
self.high =[string.atof(i.split(',')[2]) for i in self.data]
self.low =[string.atof(i.split(',')[3]) for i in self.data]
self.close =[string.atof(i.split(',')[4]) for i in self.data]
self.vol =[string.atof(i.split(',')[5]) for i in self.data]
self.adjclose =[string.atof(i.split(',')[6]) for i in self.data]
Your canvas is too big to display on my screen. Configure the canvas size to be smaller than the screen. Configuring the scrollregion takes care of the required size for your data.
It looks like you are creating 3 lines on top of one another. There must be something wrong with the calculation of the 'y' position in self.getyposition. At index 295, the calculated 'y' value difference is 395.5378. I don't think you intended that.
Hi ! I have a strange problem with a std::ostringstream..
code :
#include <sstream>
/*...*/
std::ostringstream ss();
ss << "\"\"" << libpath << "\"\" \"\"" << argfilename << "\"\"...
(note: reason for posting here; browser helper object is written in
C++; C++ developers tend to know the intricacies of message handling;
this looks like a Windows messaging issue)
Microsoft...
Hi all.
i have a strange problem
i have done a User Control, in wich i have placed a few buttons inside it
and place it in an form.
in the previous version of .NET (2003), i have try to access...
Hi
I have a strange problem in C , I hope someone may help with it .
the problem is as follows :
I have an existing big structure (that I can't change) which
contains in it groups of...
Hi everybody,
I'm facing a very very strange problem with a very very simple C
program...
My goal should be to write to a binary file some numbers (integers),
each one represented as a sequence...
Hello!
Recently I had a strange problem with Visual C# 2005 beta 1.
When I ran(F5 key) a program, <#if DEBUG> statement was not working.
It ran as RELEASE mode.
So I had to manually define...
Hi everybody
I've been writing my very first application in Python and everything is
running smoothly, except for a strange problem that pops up every once
in a while. I'm sure is the kind
of...
Pagepostback.....strange problem
Hi,
I am at cient place and getting very strange problem with my asp.net application............when i call my web application from any desktop machine in lan...
Hi guys, I have a very strange problem with scriptmanager here. I want to
load a js (which is embed in the project) but everytime i try to load that,
it gives me error like
Specified argument was...
I have a .NET application that, among other things, creates Excel
workbooks, and I have run into a very strange problem involving
formulas on one worksheet that reference values on another...
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...