Dear all,
I try to get the numerical data from the following webpage:
http://www.astro.oma.be/GENERAL/INFO/nzon/zon_2018.html
With the following code-fragment I was already able to get a partial result:
#!/usr/bin/env python
#memo: install bs4 as follows: sudo easy_install bs4
# -*- coding: utf-
Op dinsdag 29 maart 2016 00:29:29 UTC+2 schreef Peter Pearson:
> On Mon, 28 Mar 2016 14:10:28 -0700 (PDT), jenswaelk...@gmail.com wrote:
> > I'm using the tkFileDialog-module in Python 2.7, it works fine except
> > for one thing: when I add a title, the title isn't shown.
> >
> > e.g. I have this l
I'm trying to set the geometry of my top window, but the size is
unaffected.
This is the code:
#!/usr/bin/env python
import Tkinter
top=Tkinter.Tk()
top.geometry=('900x460')
top.update_idletasks()
print (top.winfo_width())
print (top.winfo_height())
print (top.winfo_geometry())
top.mainloop()
and
Op maandag 8 februari 2016 13:26:56 UTC+1 schreef Peter Otten:
> jenswaelk...@gmail.com wrote:
>
> > I'm trying to set the geometry of my top window, but the size is
> > unaffected.
> > This is the code:
> >
> > #!/usr/bin/env python
> > import Tkinter
> > top=Tkinter.Tk()
> > top.geometry=('900x
When I run my Python scripts from the command prompt in Linux, I can make
visible all kinds of information I want to check by using print statements
e.g. print (top.winfo_width()), this is very useful when debugging.
However, the final version of my program won't be run from the command line,
but
When I use either of the following commands I get an error for which I don't
have a solution, could someone here help me further?
These are the commands:
import matplotlib.pyplot as plt
or
from matplotlib.pyplot import pyplot as plt
This is the error I get:
Traceback (most recent call last):
Op zaterdag 20 februari 2016 09:50:05 UTC+1 schreef Dave Farrance:
> It occurs to me now that the trackback might misidentify the module in
> use, if say, you'd named a file "numbers.py" then got rid of it later
> leaving a "numbers.pyc" somewhere. If so, see where it is:
>
> import numbers
> prin
Op zaterdag 20 februari 2016 09:43:35 UTC+1 schreef Mark Lawrence:
> On 20/02/2016 07:42, jenswaelk...@gmail.com wrote:
> > When I use either of the following commands I get an error for which I
> > don't have a solution, could someone here help me further?
> > These are the commands:
> > import m
I'm using the tkFileDialog-module in Python 2.7, it works fine except for one
thing: when I add a title, the title isn't shown.
e.g. I have this line of code:
inputfilename=tkFileDialog.askopenfilename(defaultextension=".dat",
filetypes=(("data file", "*.dat"),("All Files", "*.*") ),title='Selec