pack

python pack() and grid() methods together

自闭症网瘾萝莉.ら 提交于 2019-11-26 06:48:49
问题 Im new to python so please forgive my Noob-ness. Im trying to create a status bar at the bottom of my app window, but it seems every time I use the pack() and grid() methods together in the same file, the main app window doesn\'t open. When I comment out the line that says statusbar.pack(side = BOTTOM, fill = X) my app window opens up fine but if I leave it in it doesn\'t, and also if I comment out any lines that use the grid method the window opens with the status bar. It seems like I can

exception in initializer error

本小妞迷上赌 提交于 2019-11-26 04:45:32
问题 I am using Netbeans. I did some things with bindings and now whenever I start my program, before it even intializes the form, it gives me an error The exception in thread main is ocuring before the form is even an intialized object yet. The form is not even an object yet. Every line in my main() causes an exception. Random stuff. I don\'t understand it at all. Here is the error. Exception in thread \"main\" java.lang.ExceptionInInitializerError at obd2ner.main(obd2ner.java:26) Caused by: java