Changeset 120 in main


Ignore:
Timestamp:
07/22/10 11:38:00 (11 years ago)
Author:
pcosquer
Message:

plugin freecad : code clean up

Location:
trunk/plugins/freecad/OpenPLM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/freecad/OpenPLM/InitGui.py

    r117 r120  
    164164        self.cmdList = ["OpenPLM_Login", "Separator"] 
    165165        self.appendMenu("OpenPLM", self.cmdList) 
     166 
    166167        self.cmdList2 = ["OpenPLM_CheckOut", "OpenPLM_Download", "OpenPLM_Forget", 
    167168                         "OpenPLM_CheckIn", "OpenPLM_Revise", 
  • trunk/plugins/freecad/OpenPLM/openplm.py

    r119 r120  
    335335    dialog = qt.QMessageBox() 
    336336    dialog.setText(message) 
     337    dialog.setWindowTitle("Error") 
    337338    dialog.setIcon(qt.QMessageBox.Warning)     
    338339    dialog.exec_() 
     
    410411        table.addWidget(label, 1, 0) 
    411412        self.user_entry = qt.QLineEdit(self) 
    412         #self.user_entry.connect("activate", self.user_entry_activate_cb) 
    413413        table.addWidget(self.user_entry, 0, 1) 
    414414        self.pw_entry = qt.QLineEdit() 
     
    431431            self.accept() 
    432432        except ValueError, e: 
     433            self.user_entry.setFocus() 
    433434            show_error("Can not login: %s" % str(e), self) 
    434435 
     
    617618    TITLE = "Check-in..." 
    618619    ACTION_NAME = "Check-in" 
    619     WIDTH = 200 
    620     HEIGHT = 100 
    621620 
    622621    def __init__(self, doc, name): 
Note: See TracChangeset for help on using the changeset viewer.