So for some reason, I can not get the horizontal scroll bar to show up. I set the policy correctly, and I tried even setting the policy to "always", and for some reason it wont show up. The pane scrolls fine with the click and drag, but I don't understand why no scroll bar when the policy...
I should start by saying, I'm new to java programming.
I have a JTable, and I guess it is their default behavior to allow users to click and hold the header of a column and move the column around. I have looked everywhere online, and I must not be wording it right, because I can not figure...
To answer my own question in case anyone was wondering I had to create a class within data.py like this:
class data:
que =0;
q = data;
then I would just:
from data import *;
and acces q.que instead :)
So no need to reply I think I have it figured out ;)
Ok so I have a new problem, and I cannot figure out how to fix it. I think I have tried pretty much everythign I can think of so I'm here to ask another newbie question.
If I have 3 simple files:
--data.py-----------
que = 0;
--------------------
--func.py--------------------
from data...
uhhhh holy moly thanks. I can't believe i forgot from blah import blah2. I took a class on python like a year ago but I haven't foudn my notes on it. Thank you very much :)
I'm new to python, and trying to find a way of accesing a variable that is in another file. I think that "global" is kind of different in python than in most languages. Anyway is there an equivalent of "extern" like in c or c++? any help is greatly appreciated :)
regards,
John
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.