Example #1
0
 def setUp(self):
     self.ui = BiBlerApp()
     self._ids = []
     for e in oracle.all_entries_all_fields:
         self._ids.append(self.ui.addEntry(e.getBibTeX()))
     self.total = len(oracle.all_entries_all_fields)
     settings.Preferences().overrideKeyGeneration = True
Example #2
0
 def testAddWithQuotes(self):
     settings.Preferences().overrideKeyGeneration = False
     _id = self.ui.addEntry(oracle.valid_entry_bracket.getBibTeX())
     bibtex_bracket = self.ui.getBibTeX(_id)
     _id = self.ui.addEntry(oracle.valid_entry_quote.getBibTeX())
     bibtex_quote = self.ui.getBibTeX(_id)
     self.assertEqual(bibtex_bracket, bibtex_quote,
                      'adding an entry in quotes does not parse correctly')
Example #3
0
It should be used as an API that a statechart controller can invoke.

@group Main GUI class: MainWindow
@group Widgets: AboutBox, EditorTab, EntryEditor, EntryList, EntryPreviewer, EntryWidget, PreferencesDialog, SearchDialog, UserManualWindow
@sort: A*, E*, P*, S*, U*
'''

import wx
import wx.lib.mixins.listctrl as wxLC
import wx.html as wxHTML
import webbrowser
from utils import settings
from utils import resourcemgr
from app_interface import EntryListColumn

prefs = settings.Preferences()
"""
Load the preferences
"""
resMgr = resourcemgr.ResourceManager()
"""
Load the resource manager
"""


class EntryWidget(object):
    """
    A widget to control entries.
    """
    def __init__(self, rows, cols, behavior=None):
        """
Example #4
0
 def setUp(self):
     self.ui = BiBlerApp()
     settings.Preferences().allowInvalidEntries = True
     settings.Preferences().overrideKeyGeneration = True
Example #5
0
 def setUp(self):
     self.ui = BiBlerApp()
     settings.Preferences().overrideKeyGeneration = True